Fix #14586, Fix 069ff846e4: Empty station tile layouts incorrectly substituted with default layouts. (#14587)
It is no longer possible for a layout to be missing, so the nullptr check should have been removed.
This commit is contained in:
@@ -3316,7 +3316,7 @@ static void DrawTile_Station(TileInfo *ti)
|
||||
palette = PALETTE_TO_GREY;
|
||||
}
|
||||
|
||||
if (layout == nullptr && (t == nullptr || t->GetSequence().empty())) t = GetStationTileLayout(GetStationType(ti->tile), gfx);
|
||||
if (layout == nullptr && t == nullptr) t = GetStationTileLayout(GetStationType(ti->tile), gfx);
|
||||
|
||||
/* don't show foundation for docks */
|
||||
if (ti->tileh != SLOPE_FLAT && !IsDock(ti->tile)) {
|
||||
|
||||
Reference in New Issue
Block a user