You've already forked OpenRCT2-Unity
mirror of
https://github.com/izzy2lost/OpenRCT2-Unity.git
synced 2026-03-10 12:38:22 -07: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