From 6a0439a789fc3a5f8da55493b27d4c9c6c328b1b Mon Sep 17 00:00:00 2001 From: frosch Date: Sat, 12 Oct 2013 16:33:19 +0000 Subject: (svn r25838) -Codechange: Rename HOUSE_MAX to NUM_HOUSES. --- src/town_cmd.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/town_cmd.cpp') diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp index 1430656a9..6d469ba06 100644 --- a/src/town_cmd.cpp +++ b/src/town_cmd.cpp @@ -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() { -- cgit v1.2.3-54-g00ecf