Changeset - r15744:6f723a16b26d
[Not reviewed]
master
0 1 0
frosch - 14 years ago 2010-08-09 07:19:44
frosch@openttd.org
(svn r20421) -Change [FS#3947]: Make snowyness of bridgehead depend on the tileheight at the entry edge.
1 file changed with 7 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/tunnelbridge_cmd.cpp
Show inline comments
 
@@ -1396,12 +1396,17 @@ static void TileLoop_TunnelBridge(TileIn
 
{
 
	bool snow_or_desert = HasTunnelBridgeSnowOrDesert(tile);
 
	switch (_settings_game.game_creation.landscape) {
 
		case LT_ARCTIC:
 
			if (snow_or_desert != (GetTileZ(tile) > GetSnowLine())) {
 
		case LT_ARCTIC: {
 
			/* As long as we do not have a snow density, we want to use the density
 
			 * from the entry endge. For tunnels this is the lowest point for bridges the highest point.
 
			 * (Independent of foundations) */
 
			uint z = IsBridge(tile) ? GetTileMaxZ(tile) : GetTileZ(tile);
 
			if (snow_or_desert != (z > GetSnowLine())) {
 
				SetTunnelBridgeSnowOrDesert(tile, !snow_or_desert);
 
				MarkTileDirtyByTile(tile);
 
			}
 
			break;
 
		}
 

	
 
		case LT_TROPIC:
 
			if (GetTropicZone(tile) == TROPICZONE_DESERT && !snow_or_desert) {
0 comments (0 inline, 0 general)