From ef168b7d46a19dcca9129bf203da012c915f4c3e Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Sat, 19 Aug 2023 00:18:25 +0100 Subject: [PATCH] Fix: Road stops should not draw a ground sprite of 0 --- src/station_cmd.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp index cde553890d..de25fb0d1e 100644 --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -3588,8 +3588,10 @@ draw_default_foundation: SpriteID image = t->ground.sprite; PaletteID pal = t->ground.pal; image += HasBit(image, SPRITE_MODIFIER_CUSTOM_SPRITE) ? ground_relocation : total_offset; - if (HasBit(pal, SPRITE_MODIFIER_CUSTOM_SPRITE)) pal += ground_relocation; - DrawGroundSprite(image, GroundSpritePaletteTransform(image, pal, palette)); + if (GB(image, 0, SPRITE_WIDTH) != 0) { + if (HasBit(pal, SPRITE_MODIFIER_CUSTOM_SPRITE)) pal += ground_relocation; + DrawGroundSprite(image, GroundSpritePaletteTransform(image, pal, palette)); + } } if (IsDriveThroughStopTile(ti->tile)) {