(svn r11185) -Codechange: prepare some more code for the introduction of NewIndustries. Patch by Belugas.

This commit is contained in:
rubidium
2007-09-28 21:24:25 +00:00
parent beeae81f60
commit 136d726b6f
3 changed files with 5 additions and 4 deletions

View File

@@ -65,7 +65,8 @@ void ResetIndustries()
/* once performed, enable only the current climate industries */
for (IndustryType i = 0; i < NUM_INDUSTRYTYPES; i++) {
_industry_specs[i].enabled = HASBIT(_origin_industry_specs[i].climate_availability, _opt.landscape);
_industry_specs[i].enabled = i < NEW_INDUSTRYOFFSET &&
HASBIT(_origin_industry_specs[i].climate_availability, _opt.landscape);
}
memset(&_industry_tile_specs, 0, sizeof(_industry_tile_specs));