Skip to content

Commit

Permalink
Fix: Road stops should not draw a ground sprite of 0 (OpenTTD#11214)
Browse files Browse the repository at this point in the history
  • Loading branch information
JGRennison committed Aug 20, 2023
1 parent 45cc3ac commit 8df4aa7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/station_cmd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3174,8 +3174,10 @@ static void DrawTile_Station(TileInfo *ti)
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)) {
Expand Down

0 comments on commit 8df4aa7

Please sign in to comment.