(svn r6739) -Fix (r6001): Crash on removing farmland belonging to a farm. The search would loop

around the edges causing some troubles. Also make sure that the land after
 farm removal is not barren but 2/3rd grass. Better suited.
This commit is contained in:
Darkvater
2006-10-11 21:20:53 +00:00
parent 61f3deb5da
commit e0787f3afa
2 changed files with 2 additions and 1 deletions

View File

@@ -682,7 +682,7 @@ static void TileLoop_Clear(TileIndex tile)
if (GetIndustryIndexOfField(tile) == INVALID_INDUSTRY && GetFieldType(tile) >= 7) {
/* This farmfield is no longer farmfield, so make it grass again */
MakeClear(tile, CLEAR_GRASS, 0);
MakeClear(tile, CLEAR_GRASS, 2);
} else {
field_type = GetFieldType(tile);
field_type = (field_type < 8) ? field_type + 1 : 0;