diff options
author | frosch <frosch@openttd.org> | 2013-10-12 16:33:19 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2013-10-12 16:33:19 +0000 |
commit | 6a0439a789fc3a5f8da55493b27d4c9c6c328b1b (patch) | |
tree | 7522f46ab9f0646d701a2803961ed400cfba338c /src/town_cmd.cpp | |
parent | ad8b387f9eb8185f25948651b7a34f151812c31d (diff) | |
download | openttd-6a0439a789fc3a5f8da55493b27d4c9c6c328b1b.tar.xz |
(svn r25838) -Codechange: Rename HOUSE_MAX to NUM_HOUSES.
Diffstat (limited to 'src/town_cmd.cpp')
-rw-r--r-- | src/town_cmd.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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() { |