mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-24 06:59:10 +00:00
(svn r6032) -Fix: when a farm is gone, remove the fields when it is full grown and should be harvest (not before that)
This commit is contained in:
@@ -680,7 +680,7 @@ static void TileLoop_Clear(TileIndex tile)
|
|||||||
SetClearCounter(tile, 0);
|
SetClearCounter(tile, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (GetIndustryIndexOfField(tile) == INVALID_INDUSTRY) {
|
if (GetIndustryIndexOfField(tile) == INVALID_INDUSTRY && GetFieldType(tile) >= 7) {
|
||||||
/* This farmfield is no longer farmfield, so make it grass again */
|
/* This farmfield is no longer farmfield, so make it grass again */
|
||||||
MakeClear(tile, CLEAR_GRASS, 0);
|
MakeClear(tile, CLEAR_GRASS, 0);
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user