diff options
author | Darkvater <Darkvater@openttd.org> | 2006-01-29 10:57:23 +0000 |
---|---|---|
committer | Darkvater <Darkvater@openttd.org> | 2006-01-29 10:57:23 +0000 |
commit | 89a993911275486e704a871da70d077916824e98 (patch) | |
tree | 09e5bf57de6dee26445cbf543f2ca9edaeec8bf1 | |
parent | 9eb158982746e1c2a5ef7b2a2d3ac10990f1273a (diff) | |
download | openttd-89a993911275486e704a871da70d077916824e98.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.c | 3 |
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); |