Mercurial > hg > openttd
changeset 2912:2c9a2de44e94 draft
(svn r3467) - CodeChange: Remove an useless assignment (reads a value and just writes it back)" tree_cmd.c
author | Darkvater <Darkvater@openttd.org> |
---|---|
date | Sun, 29 Jan 2006 10:57:23 +0000 |
parents | 31b1c8f22cf7 |
children | d2aeb63e3ed6 |
files | tree_cmd.c |
diffstat | 1 files changed, 0 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/tree_cmd.c +++ b/tree_cmd.c @@ -500,8 +500,6 @@ /* 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 @@ _m[tile].m2 = 0; } - _m[tile].m3 = m3; _m[tile].m4 = 0; SetTileType(tile, MP_TREES);