diff options
author | skidd13 <skidd13@openttd.org> | 2008-03-18 12:28:21 +0000 |
---|---|---|
committer | skidd13 <skidd13@openttd.org> | 2008-03-18 12:28:21 +0000 |
commit | a887b79f904ffea8138877feddf138400bf46eaa (patch) | |
tree | 3635265faa97c3ae592a1ad08aee603ada1d45f0 /src/town.h | |
parent | 985dbaa093a9310bf176fb82a277ca858872aa3f (diff) | |
download | openttd-a887b79f904ffea8138877feddf138400bf46eaa.tar.xz |
(svn r12381) -Fix [FS1835] [FS1535] (r11855): The number of houses wasn't computed right. A few other things regaring the updating had to be changed. Big thanks for support to frosch123 and SmatZ, to name just a few. (Inspired by a patch of bilbo)
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 62a49653a..4c42c8bc5 100644 --- a/src/town.h +++ b/src/town.h @@ -90,7 +90,7 @@ struct Town : PoolItem<Town, TownID, &_Town_pool> { TileIndex xy; /* Current population of people and amount of houses. */ - uint16 num_houses; + uint32 num_houses; uint32 population; /* Town name */ @@ -320,6 +320,7 @@ void ResetHouses(); void ClearTownHouse(Town *t, TileIndex tile); void AfterLoadTown(); void UpdateTownMaxPass(Town *t); +void UpdateTownRadius(Town *t); bool CheckIfAuthorityAllows(TileIndex tile); Town *ClosestTownFromTile(TileIndex tile, uint threshold); void ChangeTownRating(Town *t, int add, int max); |