diff options
author | tron <tron@openttd.org> | 2005-01-03 19:06:16 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-01-03 19:06:16 +0000 |
commit | f772d1a263e44af95c1afc392665b09a1fefe475 (patch) | |
tree | e6c9f00b3adce8e1076c2a8d561816f4dd34b478 /tree_cmd.c | |
parent | bcff0ab9320a2d4826d42135a674fac4e06a6f9d (diff) | |
download | openttd-f772d1a263e44af95c1afc392665b09a1fefe475.tar.xz |
(svn r1345) Only copy the lowest two bits (amount of snow/desert) from map5 to map2 when placing trees, before this happened implicitly because map2 was just 8 bits wide
Diffstat (limited to 'tree_cmd.c')
-rw-r--r-- | tree_cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tree_cmd.c b/tree_cmd.c index 79ebbed47..5fdf4e22c 100644 --- a/tree_cmd.c +++ b/tree_cmd.c @@ -521,7 +521,7 @@ static void TileLoop_Trees(uint tile) if ( (_map5[tile] & 0x1C) == 4) { _map2[tile] = 0x10; } else if ((_map5[tile] & 0x1C) == 16) { - _map2[tile] = (_map5[tile] << 6) | 0x20; + _map2[tile] = ((_map5[tile] & 3) << 6) | 0x20; } else { if ((_map5[tile] & 0x1F) != 3) return; |