mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-27 08:45:00 +01:00
Fix #16204: Invisible entrance/exits render as tiny land sprites
This commit is contained in:
@@ -4878,7 +4878,7 @@ static void WindowRideColourPaint(rct_window* w, rct_drawpixelinfo* dpi)
|
||||
gfx_clear(&clippedDpi, PALETTE_INDEX_12);
|
||||
|
||||
auto stationObj = ride_get_station_object(ride);
|
||||
if (stationObj != nullptr && stationObj->BaseImageId != 0)
|
||||
if (stationObj != nullptr && stationObj->BaseImageId != ImageIndexUndefined)
|
||||
{
|
||||
auto imageTemplate = ImageId(trackColour.main, trackColour.additional);
|
||||
auto imageId = imageTemplate.WithIndex(stationObj->BaseImageId);
|
||||
|
||||
@@ -118,7 +118,7 @@ static void PaintRideEntranceExit(paint_session* session, uint8_t direction, int
|
||||
}
|
||||
|
||||
auto stationObj = ride_get_station_object(ride);
|
||||
if (stationObj == nullptr || stationObj->BaseImageId == 0)
|
||||
if (stationObj == nullptr || stationObj->BaseImageId == ImageIndexUndefined)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user