diff options
author | smatz <smatz@openttd.org> | 2009-08-30 11:47:41 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-08-30 11:47:41 +0000 |
commit | ee685c82874d2ab58efd46a496082b789156b0a7 (patch) | |
tree | 306d6b4355688a2c787c19667b284a317d428d1b /src/industry_map.h | |
parent | c94b9973e60959cdb9bd706bddbf79727fb4dbe7 (diff) | |
download | openttd-ee685c82874d2ab58efd46a496082b789156b0a7.tar.xz |
(svn r17316) -Codechange: use Industry::GetByTile() instead of GetIndustryByTile()
Diffstat (limited to 'src/industry_map.h')
-rw-r--r-- | src/industry_map.h | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/industry_map.h b/src/industry_map.h index c6824ae54..2112b4285 100644 --- a/src/industry_map.h +++ b/src/industry_map.h @@ -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" @@ -70,17 +70,6 @@ static inline IndustryID GetIndustryIndex(TileIndex t) } /** - * 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 * @pre IsTileType(t, MP_INDUSTRY) |