summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-01-29 10:57:23 +0000
committerDarkvater <darkvater@openttd.org>2006-01-29 10:57:23 +0000
commit5fed533ce83a6f5371d0753593b622a97ffcd313 (patch)
tree09e5bf57de6dee26445cbf543f2ca9edaeec8bf1
parentf4e7d3203a8448f904ed67b8db06fed2b7d93ba8 (diff)
downloadopenttd-5fed533ce83a6f5371d0753593b622a97ffcd313.tar.xz
(svn r3467) - CodeChange: Remove an useless assignment (reads a value and just writes it back)" tree_cmd.c
-rw-r--r--tree_cmd.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/tree_cmd.c b/tree_cmd.c
index 51a5cfe06..2863061cb 100644
--- a/tree_cmd.c
+++ b/tree_cmd.c
@@ -500,8 +500,6 @@ 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;
@@ -515,7 +513,6 @@ static void TileLoop_Trees(TileIndex tile)
_m[tile].m2 = 0;
}
- _m[tile].m3 = m3;
_m[tile].m4 = 0;
SetTileType(tile, MP_TREES);