summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-02-04 11:53:31 +0000
committertron <tron@openttd.org>2006-02-04 11:53:31 +0000
commitfe6002e20faa0853411d1e3c879d13647f4d0eab (patch)
tree0d84393ff0fb46bd4701d5ef882c26b5c3326adb
parenta3c14182d38a212094b8125bd570e8c5df453adc (diff)
downloadopenttd-fe6002e20faa0853411d1e3c879d13647f4d0eab.tar.xz
(svn r3532) Revert r3467, was total nonesense, my fault
-rw-r--r--tree_cmd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tree_cmd.c b/tree_cmd.c
index 174bfd8d6..52a834df0 100644
--- a/tree_cmd.c
+++ b/tree_cmd.c
@@ -493,6 +493,8 @@ static void TileLoop_Trees(TileIndex tile)
/* fall through */
case 2: { /* add a neighbouring tree */
+ byte m3 = _m[tile].m3;
+
tile += ToTileIndexDiff(_tileloop_trees_dir[Random() & 7]);
if (!IsTileType(tile, MP_CLEAR)) return;
@@ -508,6 +510,7 @@ static void TileLoop_Trees(TileIndex tile)
default: return;
}
+ _m[tile].m3 = m3;
_m[tile].m4 = 0;
SetTileType(tile, MP_TREES);