summaryrefslogtreecommitdiff
path: root/src/town.h
diff options
context:
space:
mode:
authorskidd13 <skidd13@openttd.org>2008-03-18 12:28:21 +0000
committerskidd13 <skidd13@openttd.org>2008-03-18 12:28:21 +0000
commit49cf499cf2be57504e2e1553e17c3bbafd6f2936 (patch)
tree3635265faa97c3ae592a1ad08aee603ada1d45f0 /src/town.h
parent285a43037b412e4943ffe96407a14c4d9a058dd7 (diff)
downloadopenttd-49cf499cf2be57504e2e1553e17c3bbafd6f2936.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.h3
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);