mirror of https://github.com/OpenTTD/OpenTTD
(svn r5592) Merge two complementary cases
parent
611ca20f68
commit
81846cca24
|
@ -1234,16 +1234,9 @@ static void TileLoop_TunnelBridge(TileIndex tile)
|
||||||
{
|
{
|
||||||
switch (_opt.landscape) {
|
switch (_opt.landscape) {
|
||||||
case LT_HILLY:
|
case LT_HILLY:
|
||||||
if (GetTileZ(tile) > _opt.snow_line) {
|
if (HASBIT(_m[tile].m4, 7) != (GetTileZ(tile) > _opt.snow_line)) {
|
||||||
if (!(_m[tile].m4 & 0x80)) {
|
TOGGLEBIT(_m[tile].m4, 7);
|
||||||
_m[tile].m4 |= 0x80;
|
MarkTileDirtyByTile(tile);
|
||||||
MarkTileDirtyByTile(tile);
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
if (_m[tile].m4 & 0x80) {
|
|
||||||
_m[tile].m4 &= ~0x80;
|
|
||||||
MarkTileDirtyByTile(tile);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue