From a887b79f904ffea8138877feddf138400bf46eaa Mon Sep 17 00:00:00 2001 From: skidd13 Date: Tue, 18 Mar 2008 12:28:21 +0000 Subject: (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) --- src/town.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/town.h') 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 { 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); -- cgit v1.2.3-54-g00ecf