(svn r25838) -Codechange: Rename HOUSE_MAX to NUM_HOUSES.

This commit is contained in:
frosch
2013-10-12 16:33:19 +00:00
parent ad8b387f9e
commit 6a0439a789
6 changed files with 25 additions and 25 deletions

View File

@@ -2194,13 +2194,13 @@ static bool BuildTownHouse(Town *t, TileIndex tile)
/* bits 0-4 are used
* bits 11-15 are used
* bits 5-10 are not used. */
HouseID houses[HOUSE_MAX];
HouseID houses[NUM_HOUSES];
uint num = 0;
uint probs[HOUSE_MAX];
uint probs[NUM_HOUSES];
uint probability_max = 0;
/* Generate a list of all possible houses that can be built. */
for (uint i = 0; i < HOUSE_MAX; i++) {
for (uint i = 0; i < NUM_HOUSES; i++) {
const HouseSpec *hs = HouseSpec::Get(i);
/* Verify that the candidate house spec matches the current tile status */
@@ -3378,7 +3378,7 @@ extern const TileTypeProcs _tile_type_town_procs = {
};
HouseSpec _house_specs[HOUSE_MAX];
HouseSpec _house_specs[NUM_HOUSES];
void ResetHouses()
{