Changeset - r20994:35b83b9520b2
[Not reviewed]
master
0 1 0
rubidium - 11 years ago 2013-11-23 18:08:48
rubidium@openttd.org
(svn r26068) -Fix: unneeded NULL check
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/newgrf_station.cpp
Show inline comments
 
@@ -844,13 +844,13 @@ bool DrawStationTile(int x, int y, RailT
 
		ground_relocation += rti->fallback_railtype;
 
	}
 

	
 
	SpriteID image = sprites->ground.sprite;
 
	PaletteID pal = sprites->ground.pal;
 
	RailTrackOffset overlay_offset;
 
	if (rti != NULL && rti->UsesOverlay() && SplitGroundSpriteForOverlay(NULL, &image, &overlay_offset)) {
 
	if (rti->UsesOverlay() && SplitGroundSpriteForOverlay(NULL, &image, &overlay_offset)) {
 
		SpriteID ground = GetCustomRailSprite(rti, INVALID_TILE, RTSG_GROUND);
 
		DrawSprite(image, PAL_NONE, x, y);
 
		DrawSprite(ground + overlay_offset, PAL_NONE, x, y);
 
	} else {
 
		image += HasBit(image, SPRITE_MODIFIER_CUSTOM_SPRITE) ? ground_relocation : total_offset;
 
		if (HasBit(pal, SPRITE_MODIFIER_CUSTOM_SPRITE)) pal += ground_relocation;
0 comments (0 inline, 0 general)