summaryrefslogtreecommitdiff
path: root/src/industry_gui.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2013-10-12 16:33:19 +0000
committerfrosch <frosch@openttd.org>2013-10-12 16:33:19 +0000
commit6a0439a789fc3a5f8da55493b27d4c9c6c328b1b (patch)
tree7522f46ab9f0646d701a2803961ed400cfba338c /src/industry_gui.cpp
parentad8b387f9eb8185f25948651b7a34f151812c31d (diff)
downloadopenttd-6a0439a789fc3a5f8da55493b27d4c9c6c328b1b.tar.xz
(svn r25838) -Codechange: Rename HOUSE_MAX to NUM_HOUSES.
Diffstat (limited to 'src/industry_gui.cpp')
-rw-r--r--src/industry_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/industry_gui.cpp b/src/industry_gui.cpp
index 49f71e909..b77891368 100644
--- a/src/industry_gui.cpp
+++ b/src/industry_gui.cpp
@@ -1996,7 +1996,7 @@ struct CargoesRow {
} else {
/* Houses only display what is demanded. */
for (uint i = 0; i < cargo_fld->u.cargo.num_cargoes; i++) {
- for (uint h = 0; h < HOUSE_MAX; h++) {
+ for (uint h = 0; h < NUM_HOUSES; h++) {
HouseSpec *hs = HouseSpec::Get(h);
if (!hs->enabled) continue;
@@ -2188,7 +2188,7 @@ struct IndustryCargoesWindow : public Window {
for (uint i = 0; i < length; i++) {
if (cargoes[i] == INVALID_CARGO) continue;
- for (uint h = 0; h < HOUSE_MAX; h++) {
+ for (uint h = 0; h < NUM_HOUSES; h++) {
HouseSpec *hs = HouseSpec::Get(h);
if (!hs->enabled || !(hs->building_availability & climate_mask)) continue;