(svn r1874) Fix bug introduced in r1839 which placed snow covered trees below the snow line ([1121680])

This commit is contained in:
tron 2005-02-14 18:55:10 +00:00
parent 8fea0f0a8f
commit e2359c11ae
1 changed files with 1 additions and 2 deletions

View File

@ -50,8 +50,7 @@ static void PlaceTree(uint tile, uint32 r, byte m5_or)
_map3_hi[tile] = 0; // no hedge
// above snowline?
if( (_opt.landscape == LT_HILLY) && (GetTileZ(tile) - _opt.snow_line > 0) )
{
if (_opt.landscape == LT_HILLY && GetTileZ(tile) > _opt.snow_line) {
_map2[tile] = 0xE0; // set land type to snow
_map2[tile] |= (byte)(r >> 24)&0x07; // randomize counter
}