diff --git a/src/town.h b/src/town.h --- a/src/town.h +++ b/src/town.h @@ -135,13 +135,13 @@ struct Town : TownPool::PoolItem<&_town_ return ((this->population / _settings_game.economy.town_noise_population[_settings_game.difficulty.town_council_tolerance]) + 3); } + + static FORCEINLINE Town *GetByTile(TileIndex tile) + { + return Town::Get(GetTownIndex(tile)); + } }; -static inline Town *GetTownByTile(TileIndex tile) -{ - return Town::Get(GetTownIndex(tile)); -} - uint32 GetWorldPopulation(); void UpdateTownVirtCoord(Town *t);