mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-06-30 00:50:41 +01:00
Fix: Road stops should not draw a ground sprite of 0 (#11214)
This commit is contained in:
parent
45cc3acaf5
commit
8df4aa7979
@ -3174,8 +3174,10 @@ draw_default_foundation:
|
|||||||
SpriteID image = t->ground.sprite;
|
SpriteID image = t->ground.sprite;
|
||||||
PaletteID pal = t->ground.pal;
|
PaletteID pal = t->ground.pal;
|
||||||
image += HasBit(image, SPRITE_MODIFIER_CUSTOM_SPRITE) ? ground_relocation : total_offset;
|
image += HasBit(image, SPRITE_MODIFIER_CUSTOM_SPRITE) ? ground_relocation : total_offset;
|
||||||
if (HasBit(pal, SPRITE_MODIFIER_CUSTOM_SPRITE)) pal += ground_relocation;
|
if (GB(image, 0, SPRITE_WIDTH) != 0) {
|
||||||
DrawGroundSprite(image, GroundSpritePaletteTransform(image, pal, palette));
|
if (HasBit(pal, SPRITE_MODIFIER_CUSTOM_SPRITE)) pal += ground_relocation;
|
||||||
|
DrawGroundSprite(image, GroundSpritePaletteTransform(image, pal, palette));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (IsDriveThroughStopTile(ti->tile)) {
|
if (IsDriveThroughStopTile(ti->tile)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user