diff options
author | Darkvater <darkvater@openttd.org> | 2006-03-26 22:41:56 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2006-03-26 22:41:56 +0000 |
commit | 2ba792d64447968bbd18c755a6e4d1720728c5ae (patch) | |
tree | 9bd460410009e4e5c945bf15b225b476092a0fe6 /town.h | |
parent | fa86dff4c3f02a8dbdc339b421a7096d10bae368 (diff) | |
download | openttd-2ba792d64447968bbd18c755a6e4d1720728c5ae.tar.xz |
(svn r4130) - CodeChange: Add proper semantics for TownID for such variables instead of using the general uint16-type. We probably need to change GetTown() and IsTownIndex() as well to use TownID.
Diffstat (limited to 'town.h')
-rw-r--r-- | town.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -70,7 +70,7 @@ struct Town { byte road_build_months; // Index in town array - uint16 index; + TownID index; // NOSAVE: UpdateTownRadius updates this given the house count. uint16 radius[5]; @@ -80,7 +80,7 @@ uint32 GetWorldPopulation(void); void UpdateTownVirtCoord(Town *t); void InitializeTown(void); -void ShowTownViewWindow(uint town); +void ShowTownViewWindow(TownID town); void DeleteTown(Town *t); void ExpandTown(Town *t); Town *CreateRandomTown(uint attempts); @@ -130,7 +130,7 @@ enum { bool CheckforTownRating(uint32 flags, Town *t, byte type); -VARDEF uint16 *_town_sort; +VARDEF TownID *_town_sort; extern MemoryPool _town_pool; |