diff options
author | smatz <smatz@openttd.org> | 2009-07-05 13:21:51 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-07-05 13:21:51 +0000 |
commit | 59f94619c75be0ff4dc5f6edf8e0b365261dc9d6 (patch) | |
tree | ff8099d504f93a338e423ed5c3a36ebf2a4650c6 /src/town.h | |
parent | c861d9b64b2a63fa86ea87ac1e71f8f7341c694b (diff) | |
download | openttd-59f94619c75be0ff4dc5f6edf8e0b365261dc9d6.tar.xz |
(svn r16746) -Codechange: use Town::PostDestructor() instead of not very clean construct for invalidating nearest town for road tiles
Diffstat (limited to 'src/town.h')
-rw-r--r-- | src/town.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/town.h b/src/town.h index c65569ad1..1f02afa8d 100644 --- a/src/town.h +++ b/src/town.h @@ -142,6 +142,7 @@ struct Town : TownPool::PoolItem<&_town_pool> { } static Town *GetRandom(); + static void PostDestructor(size_t index); }; uint32 GetWorldPopulation(); @@ -181,7 +182,7 @@ bool CheckforTownRating(DoCommandFlag flags, Town *t, TownRatingCheckType type); TileIndexDiff GetHouseNorthPart(HouseID &house); -Town *CalcClosestTownFromTile(TileIndex tile, uint threshold = UINT_MAX, const Town *ignore = NULL); +Town *CalcClosestTownFromTile(TileIndex tile, uint threshold = UINT_MAX); #define FOR_ALL_TOWNS_FROM(var, start) FOR_ALL_ITEMS_FROM(Town, town_index, var, start) #define FOR_ALL_TOWNS(var) FOR_ALL_TOWNS_FROM(var, 0) |