(svn r9992) -Codechange: Remove some hardcoded references to Industry IDs.

A few more to go
This commit is contained in:
belugas
2007-05-30 20:20:58 +00:00
parent 1e371a99d2
commit 06bc9866aa
3 changed files with 6 additions and 5 deletions

View File

@@ -1781,7 +1781,7 @@ bool AfterLoadGame()
FOR_ALL_INDUSTRIES(i) {
uint j;
if (i->type == IT_FARM || i->type == IT_FARM_2) {
if (GetIndustrySpec(i->type)->behaviour & INDUSTRYBEH_PLANT_ON_BUILT) {
for (j = 0; j != 50; j++) PlantRandomFarmField(i);
}
}