diff options
author | belugas <belugas@openttd.org> | 2007-05-30 20:20:58 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2007-05-30 20:20:58 +0000 |
commit | 0f6e6d97130e955f4c4764edcfd03fbd999fb659 (patch) | |
tree | c886ca4d96352ab20a7685f1637ba209083eb6b6 /src/openttd.cpp | |
parent | 2db0d81cc15dd887b32e6d85d6fb5022300c0c1b (diff) | |
download | openttd-0f6e6d97130e955f4c4764edcfd03fbd999fb659.tar.xz |
(svn r9992) -Codechange: Remove some hardcoded references to Industry IDs.
A few more to go
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r-- | src/openttd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp index a5fa6ffca..062d2185b 100644 --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -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); } } |