From ee685c82874d2ab58efd46a496082b789156b0a7 Mon Sep 17 00:00:00 2001 From: smatz Date: Sun, 30 Aug 2009 11:47:41 +0000 Subject: (svn r17316) -Codechange: use Industry::GetByTile() instead of GetIndustryByTile() --- src/industry_map.h | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'src/industry_map.h') 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" @@ -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 -- cgit v1.2.3-54-g00ecf