forked from mirror/OpenTTD
(svn r20423) -Change [FS#3947]: Make snow on bridges depend on bridgeheight.
This commit is contained in:
@@ -333,9 +333,13 @@ uint32 GetTerrainType(TileIndex tile, TileContext context)
|
||||
}
|
||||
|
||||
case MP_TUNNELBRIDGE:
|
||||
/* During map generation the snowstate may not be valid yet, as the tileloop may not have run yet. */
|
||||
if (_generating_world) goto genworld; // we do not care about foundations here
|
||||
has_snow = HasTunnelBridgeSnowOrDesert(tile);
|
||||
if (context == TC_ON_BRIDGE) {
|
||||
has_snow = (GetBridgeHeight(tile) > GetSnowLine());
|
||||
} else {
|
||||
/* During map generation the snowstate may not be valid yet, as the tileloop may not have run yet. */
|
||||
if (_generating_world) goto genworld; // we do not care about foundations here
|
||||
has_snow = HasTunnelBridgeSnowOrDesert(tile);
|
||||
}
|
||||
break;
|
||||
|
||||
case MP_STATION:
|
||||
|
Reference in New Issue
Block a user