(svn r17316) -Codechange: use Industry::GetByTile() instead of GetIndustryByTile()

This commit is contained in:
smatz
2009-08-30 11:47:41 +00:00
parent 1889ebff85
commit 09e1ecc8ac
14 changed files with 52 additions and 55 deletions

View File

@@ -12,7 +12,7 @@
#ifndef INDUSTRY_MAP_H
#define INDUSTRY_MAP_H
#include "industry.h"
#include "industrytype.h"
#include "tile_map.h"
#include "water_map.h"
@@ -69,17 +69,6 @@ static inline IndustryID GetIndustryIndex(TileIndex t)
return _m[t].m2;
}
/**
* Get the industry of the given tile
* @param t the tile to get the industry from
* @pre IsTileType(t, MP_INDUSTRY)
* @return the industry
*/
static inline Industry *GetIndustryByTile(TileIndex t)
{
return Industry::Get(GetIndustryIndex(t));
}
/**
* Is this industry tile fully built?
* @param t the tile to analyze