Merge branch 'pr-384' into jgrpp
This commit is contained in:
@@ -2477,12 +2477,19 @@ static const Roadside _town_road_types_2[][2] = {
|
|||||||
static void TileLoop_Road(TileIndex tile)
|
static void TileLoop_Road(TileIndex tile)
|
||||||
{
|
{
|
||||||
switch (_settings_game.game_creation.landscape) {
|
switch (_settings_game.game_creation.landscape) {
|
||||||
case LT_ARCTIC:
|
case LT_ARCTIC: {
|
||||||
if (IsOnSnow(tile) != (GetTileZ(tile) > GetSnowLine())) {
|
/* Flat foundation tiles should look the same as the tiles they visually connect to. */
|
||||||
|
int tile_z = GetTileZ(tile);
|
||||||
|
if (tile_z == GetSnowLine()) {
|
||||||
|
GetFoundationSlope(tile, &tile_z);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (IsOnSnow(tile) != (tile_z > GetSnowLine())) {
|
||||||
ToggleSnow(tile);
|
ToggleSnow(tile);
|
||||||
MarkTileDirtyByTile(tile);
|
MarkTileDirtyByTile(tile);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
case LT_TROPIC:
|
case LT_TROPIC:
|
||||||
if (GetTropicZone(tile) == TROPICZONE_DESERT && !IsOnDesert(tile)) {
|
if (GetTropicZone(tile) == TROPICZONE_DESERT && !IsOnDesert(tile)) {
|
||||||
|
Reference in New Issue
Block a user