Codechange: Allocate houses dynamically instead of from a fixed array.
This uses vectors for HouseSpecs and global/town building counts.
This commit is contained in:
committed by
Michael Lutz
parent
8746be8bf2
commit
3e83dcedfd
@@ -91,6 +91,7 @@ void ResetHouseClassIDs();
|
||||
HouseClassID AllocateHouseClassID(uint8_t grf_class_id, uint32_t grfid);
|
||||
|
||||
void InitializeBuildingCounts();
|
||||
void InitializeBuildingCounts(Town *t);
|
||||
void IncreaseBuildingCount(Town *t, HouseID house_id);
|
||||
void DecreaseBuildingCount(Town *t, HouseID house_id);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user