(svn r5592) Merge two complementary cases

This commit is contained in:
tron 2006-07-22 14:31:56 +00:00
parent 611ca20f68
commit 81846cca24
1 changed files with 3 additions and 10 deletions

View File

@ -1234,16 +1234,9 @@ static void TileLoop_TunnelBridge(TileIndex tile)
{
switch (_opt.landscape) {
case LT_HILLY:
if (GetTileZ(tile) > _opt.snow_line) {
if (!(_m[tile].m4 & 0x80)) {
_m[tile].m4 |= 0x80;
MarkTileDirtyByTile(tile);
}
} else {
if (_m[tile].m4 & 0x80) {
_m[tile].m4 &= ~0x80;
MarkTileDirtyByTile(tile);
}
if (HASBIT(_m[tile].m4, 7) != (GetTileZ(tile) > _opt.snow_line)) {
TOGGLEBIT(_m[tile].m4, 7);
MarkTileDirtyByTile(tile);
}
break;