Changeset - r27817:8332df6ef79f
[Not reviewed]
master
0 1 0
Jonathan G Rennison - 13 months ago 2023-08-20 19:46:19
j.g.rennison@gmail.com
Fix: Road stops should not draw a ground sprite of 0 (#11214)
1 file changed with 4 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/station_cmd.cpp
Show inline comments
 
@@ -3174,8 +3174,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)) {
0 comments (0 inline, 0 general)