summaryrefslogtreecommitdiff
path: root/src/town.h
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-06-26 13:46:23 +0000
committersmatz <smatz@openttd.org>2009-06-26 13:46:23 +0000
commitaf78d6a9bbc4142958f07b8774ef28d0b7c22f49 (patch)
tree02804d2fbc7cf3e533df70db46fb426bc8678824 /src/town.h
parente6a165881cba611a4475db21068d64caa67796ea (diff)
downloadopenttd-af78d6a9bbc4142958f07b8774ef28d0b7c22f49.tar.xz
(svn r16665) -Codechange: replace GetTownByTile() by Town::GetByTile()
Diffstat (limited to 'src/town.h')
-rw-r--r--src/town.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/town.h b/src/town.h
index a55d45e3d..f4cdf3e37 100644
--- a/src/town.h
+++ b/src/town.h
@@ -135,12 +135,12 @@ struct Town : TownPool::PoolItem<&_town_pool> {
return ((this->population / _settings_game.economy.town_noise_population[_settings_game.difficulty.town_council_tolerance]) + 3);
}
-};
-static inline Town *GetTownByTile(TileIndex tile)
-{
- return Town::Get(GetTownIndex(tile));
-}
+ static FORCEINLINE Town *GetByTile(TileIndex tile)
+ {
+ return Town::Get(GetTownIndex(tile));
+ }
+};
uint32 GetWorldPopulation();