@@ -67,23 +67,23 @@ struct Town {
byte fund_buildings_months;
// Fund road reconstruction in action?
byte road_build_months;
// Index in town array
uint16 index;
TownID index;
// NOSAVE: UpdateTownRadius updates this given the house count.
uint16 radius[5];
};
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);
enum {
ROAD_REMOVE = 0,
@@ -127,13 +127,13 @@ enum {
RATING_BRIBE_MAXIMUM = 800,
RATING_BRIBE_DOWN_TO = -50 // XXX SHOULD BE SOMETHING LOWER?
bool CheckforTownRating(uint32 flags, Town *t, byte type);
VARDEF uint16 *_town_sort;
VARDEF TownID *_town_sort;
extern MemoryPool _town_pool;
/**
* Check if a Town really exists.
*/