Navigation Menu

Skip to content

Commit

Permalink
Fix #6407: Show snowy ground sprites for depots (#7671)
Browse files Browse the repository at this point in the history
This is a quick fix by @KeldorKatarn:
KeldorKatarn/OpenTTD_PatchPack@65e656b

It has the drawback that snow is draw to the inside the depots as well, as the removed comment suggests.
  • Loading branch information
stormcone authored and planetmaker committed Oct 8, 2019
1 parent 652fb40 commit f1712a5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/rail_cmd.cpp
Expand Up @@ -2472,9 +2472,8 @@ static void DrawTile_Track(TileInfo *ti)
if (image != SPR_FLAT_GRASS_TILE) image += rti->GetRailtypeSpriteOffset();
}

/* adjust ground tile for desert
* don't adjust for snow, because snow in depots looks weird */
if (IsSnowRailGround(ti->tile) && _settings_game.game_creation.landscape == LT_TROPIC) {
/* Adjust ground tile for desert and snow. */
if (IsSnowRailGround(ti->tile)) {
if (image != SPR_FLAT_GRASS_TILE) {
image += rti->snow_offset; // tile with tracks
} else {
Expand Down

0 comments on commit f1712a5

Please sign in to comment.