1
0
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:
Ted John
2021-12-13 22:11:55 +00:00
parent cb6d7418c5
commit 6d7e2446db
2 changed files with 2 additions and 2 deletions

View File

@@ -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);

View File

@@ -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;
}