mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-19 15:25:39 +00:00
(svn r3467) - CodeChange: Remove an useless assignment (reads a value and just writes it back)" tree_cmd.c
This commit is contained in:
parent
9eb1589827
commit
89a9939112
@ -500,8 +500,6 @@ static void TileLoop_Trees(TileIndex tile)
|
|||||||
/* fall through */
|
/* fall through */
|
||||||
|
|
||||||
case 2: { /* add a neighbouring tree */
|
case 2: { /* add a neighbouring tree */
|
||||||
byte m3 = _m[tile].m3;
|
|
||||||
|
|
||||||
tile += ToTileIndexDiff(_tileloop_trees_dir[Random() & 7]);
|
tile += ToTileIndexDiff(_tileloop_trees_dir[Random() & 7]);
|
||||||
|
|
||||||
if (!IsTileType(tile, MP_CLEAR)) return;
|
if (!IsTileType(tile, MP_CLEAR)) return;
|
||||||
@ -515,7 +513,6 @@ static void TileLoop_Trees(TileIndex tile)
|
|||||||
_m[tile].m2 = 0;
|
_m[tile].m2 = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
_m[tile].m3 = m3;
|
|
||||||
_m[tile].m4 = 0;
|
_m[tile].m4 = 0;
|
||||||
SetTileType(tile, MP_TREES);
|
SetTileType(tile, MP_TREES);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user