(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

This commit is contained in:
tron 2005-01-03 19:06:16 +00:00
parent c0702318d2
commit afb6e5441d
1 changed files with 1 additions and 1 deletions

View File

@ -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;