mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-12 02:19:41 +00:00
(svn r26068) -Fix: unneeded NULL check
This commit is contained in:
parent
c035a9531b
commit
9e216a688f
@ -847,7 +847,7 @@ bool DrawStationTile(int x, int y, RailType railtype, Axis axis, StationClassID
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user