summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-01-03 19:06:16 +0000
committertron <tron@openttd.org>2005-01-03 19:06:16 +0000
commitafb6e5441d94b4be5ebc5655406b0c18af5af74a (patch)
treee6c9f00b3adce8e1076c2a8d561816f4dd34b478
parentc0702318d27d327e449b7f954dd15c0e46403f5c (diff)
downloadopenttd-afb6e5441d94b4be5ebc5655406b0c18af5af74a.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
-rw-r--r--tree_cmd.c2
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;