diff options
author | stormcone <48624099+stormcone@users.noreply.github.com> | 2019-10-08 12:51:15 +0200 |
---|---|---|
committer | Ingo von Borstel <planetmaker@openttd.org> | 2019-10-08 12:51:15 +0200 |
commit | f1712a54b2d6bac9345732786d3a3d49caa5f24f (patch) | |
tree | d73e260f402d4eb51a1ca34aec2c8eb743d80b19 /src | |
parent | 652fb4065253685eb4c16eefb2ced070e8112d25 (diff) | |
download | openttd-f1712a54b2d6bac9345732786d3a3d49caa5f24f.tar.xz |
Fix #6407: Show snowy ground sprites for depots (#7671)
This is a quick fix by @KeldorKatarn:
https://github.com/KeldorKatarn/OpenTTD_PatchPack/commit/65e656b9d6b24476d074ec6b41830a8f197d535b
It has the drawback that snow is draw to the inside the depots as well, as the removed comment suggests.
Diffstat (limited to 'src')
-rw-r--r-- | src/rail_cmd.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/rail_cmd.cpp b/src/rail_cmd.cpp index 1a4728c6c..64b293dc5 100644 --- a/src/rail_cmd.cpp +++ b/src/rail_cmd.cpp @@ -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 { |