1
0
Fork 0

Fix #6407: Show snowy ground sprites for depots (#7671)

This is a quick fix by @KeldorKatarn:
65e656b9d6

It has the drawback that snow is draw to the inside the depots as well, as the removed comment suggests.
pull/7759/head
stormcone 2019-10-08 12:51:15 +02:00 committed by Ingo von Borstel
parent 652fb40652
commit f1712a54b2
1 changed files with 2 additions and 3 deletions

View File

@ -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 {