Changeset - r4160:21bc1f45d654
[Not reviewed]
master
0 1 0
tron - 18 years ago 2006-07-22 14:31:56
tron@openttd.org
(svn r5592) Merge two complementary cases
1 file changed with 3 insertions and 10 deletions:
0 comments (0 inline, 0 general)
tunnelbridge_cmd.c
Show inline comments
 
@@ -1234,16 +1234,9 @@ static void TileLoop_TunnelBridge(TileIn
 
{
 
	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;
 

	
0 comments (0 inline, 0 general)