Changeset - r23861:f7d40898aab5
[Not reviewed]
master
0 1 0
stormcone - 5 years ago 2019-10-08 10:51:15
48624099+stormcone@users.noreply.github.com
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.
1 file changed with 2 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/rail_cmd.cpp
Show inline comments
 
@@ -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 {
0 comments (0 inline, 0 general)