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
@@ -19,8 +19,8 @@
|
||||
|
||||
template <typename T>
|
||||
struct BuildingCounts {
|
||||
T id_count[NUM_HOUSES];
|
||||
T class_count[HOUSE_CLASS_MAX];
|
||||
std::vector<T> id_count;
|
||||
std::vector<T> class_count;
|
||||
};
|
||||
|
||||
static const uint CUSTOM_TOWN_NUMBER_DIFFICULTY = 4; ///< value for custom town number in difficulty settings
|
||||
|
Reference in New Issue
Block a user