diff src/openttd.cpp @ 6757:d868c71fb346 draft

(svn r9992) -Codechange: Remove some hardcoded references to Industry IDs. A few more to go
author belugas <belugas@openttd.org>
date Wed, 30 May 2007 20:20:58 +0000
parents 6caeba8fcd4d
children 93b0e6996fcc
line wrap: on
line diff
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -1781,7 +1781,7 @@
 		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);
 			}
 		}