From c745ca21a3558f8f587296b3a88f755363965baa Mon Sep 17 00:00:00 2001 From: smatz Date: Thu, 3 Apr 2008 23:52:43 +0000 Subject: (svn r12556) -Fix (r6001): remove fences with fields when loading old savegames, looks better --- src/openttd.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/openttd.cpp b/src/openttd.cpp index 14a5f432d..1bc6ccad0 100644 --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -1963,7 +1963,12 @@ bool AfterLoadGame() for (TileIndex t = 0; t < map_size; t++) { if (IsTileType(t, MP_CLEAR) && IsClearGround(t, CLEAR_FIELDS)) { + /* remove fields */ 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); } } -- cgit v1.2.3-70-g09d2