industry_cmd.c
changeset 1247 3851739bfd09
parent 1245 3822f77cbc53
child 1267 ba42a505ab8a
--- a/industry_cmd.c	Mon Jan 31 11:03:23 2005 +0000
+++ b/industry_cmd.c	Mon Jan 31 11:23:10 2005 +0000
@@ -978,7 +978,7 @@
 		int x = (i->width>>1) + Random() % 31 - 16;
 		int y = (i->height>>1) + Random() % 31 - 16;
 		tile = TileAddWrap(i->xy, x, y);
-		if (tile != TILE_WRAPPED)
+		if (tile != INVALID_TILE)
 			PlantFarmField(tile);
 	}
 }
@@ -1496,7 +1496,7 @@
 			int x = Random() % 31 - 16;
 			int y = Random() % 31 - 16;
 			uint new_tile = TileAddWrap(tile, x, y);
-			if (new_tile != TILE_WRAPPED)
+			if (new_tile != INVALID_TILE)
 				PlantFarmField(new_tile);
 		}
 	}