Check result sprite group of RoadStopResolverObject in DrawTile_Station
This commit is contained in:
@@ -3547,10 +3547,12 @@ draw_default_foundation:
|
|||||||
st = BaseStation::GetByTile(ti->tile);
|
st = BaseStation::GetByTile(ti->tile);
|
||||||
RoadStopResolverObject object(stopspec, st, ti->tile, INVALID_ROADTYPE, type, view);
|
RoadStopResolverObject object(stopspec, st, ti->tile, INVALID_ROADTYPE, type, view);
|
||||||
const SpriteGroup *group = object.Resolve();
|
const SpriteGroup *group = object.Resolve();
|
||||||
const DrawTileSprites *dts = ((const TileLayoutSpriteGroup *)group)->ProcessRegisters(nullptr);
|
if (group != nullptr && group->type == SGT_TILELAYOUT) {
|
||||||
t = dts;
|
const DrawTileSprites *dts = ((const TileLayoutSpriteGroup *)group)->ProcessRegisters(nullptr);
|
||||||
if (type == STATION_ROADWAYPOINT && (stopspec->draw_mode & ROADSTOP_DRAW_MODE_WAYP_GROUND)) {
|
t = dts;
|
||||||
draw_ground = true;
|
if (type == STATION_ROADWAYPOINT && (stopspec->draw_mode & ROADSTOP_DRAW_MODE_WAYP_GROUND)) {
|
||||||
|
draw_ground = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user