mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-09 19:10:38 +00:00
(svn r12556) -Fix (r6001): remove fences with fields when loading old savegames, looks better
This commit is contained in:
parent
b9b99d3150
commit
c745ca21a3
@ -1963,7 +1963,12 @@ bool AfterLoadGame()
|
|||||||
|
|
||||||
for (TileIndex t = 0; t < map_size; t++) {
|
for (TileIndex t = 0; t < map_size; t++) {
|
||||||
if (IsTileType(t, MP_CLEAR) && IsClearGround(t, CLEAR_FIELDS)) {
|
if (IsTileType(t, MP_CLEAR) && IsClearGround(t, CLEAR_FIELDS)) {
|
||||||
|
/* remove fields */
|
||||||
MakeClear(t, CLEAR_GRASS, 3);
|
MakeClear(t, CLEAR_GRASS, 3);
|
||||||
|
} else if (IsTileType(t, MP_CLEAR) || IsTileType(t, MP_TREES)) {
|
||||||
|
/* remove fences around fields */
|
||||||
|
SetFenceSE(t, 0);
|
||||||
|
SetFenceSW(t, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user