diff options
author | rubidium <rubidium@openttd.org> | 2009-07-13 22:33:25 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-07-13 22:33:25 +0000 |
commit | e067d4a4b87d2c4b4fa92f24d241a88cb8432e38 (patch) | |
tree | f0528a4fd03a2b0bdb8ba6ddf08f48e76c4f0aac /src/town.h | |
parent | db63e1ad82537ea7b278c64b2a5383afd1bfbc5c (diff) | |
download | openttd-e067d4a4b87d2c4b4fa92f24d241a88cb8432e38.tar.xz |
(svn r16821) -Codechange: unify the naming of type::UpdateVirtCoord and UpdateAll[Type]VirtCoords.
Diffstat (limited to 'src/town.h')
-rw-r--r-- | src/town.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/town.h b/src/town.h index 1f02afa8d..38327fa41 100644 --- a/src/town.h +++ b/src/town.h @@ -48,7 +48,7 @@ struct Town : TownPool::PoolItem<&_town_pool> { uint32 townnameparts; char *name; - /* NOSAVE: Location of name sign, UpdateTownVirtCoord updates this. */ + /* NOSAVE: Location of name sign, UpdateVirtCoord updates this. */ ViewportSign sign; /* Makes sure we don't build certain house types twice. @@ -136,6 +136,8 @@ struct Town : TownPool::PoolItem<&_town_pool> { return ((this->population / _settings_game.economy.town_noise_population[_settings_game.difficulty.town_council_tolerance]) + 3); } + void UpdateVirtCoord(); + static FORCEINLINE Town *GetByTile(TileIndex tile) { return Town::Get(GetTownIndex(tile)); @@ -147,7 +149,6 @@ struct Town : TownPool::PoolItem<&_town_pool> { uint32 GetWorldPopulation(); -void UpdateTownVirtCoord(Town *t); void UpdateAllTownVirtCoords(); void InitializeTown(); void ShowTownViewWindow(TownID town); |