From 45df10dfd4de48e19e88a292a8a2d8f6f42b264e Mon Sep 17 00:00:00 2001 From: Marijn van der Werf Date: Sat, 7 May 2016 16:58:40 +0200 Subject: [PATCH] Fix abstract station covers --- src/ride/transport/chairlift.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ride/transport/chairlift.c b/src/ride/transport/chairlift.c index 9e6e4f61fc..6cb0c26bb9 100644 --- a/src/ride/transport/chairlift.c +++ b/src/ride/transport/chairlift.c @@ -301,13 +301,13 @@ static bool paint_util_draw_station_covers(EDGE edge, bool hasFence, rct_ride_en } if (baseImageId & 0x40000000) { - imageId = baseImageId & 0xBFFFFFFF + imageOffset; + imageId = (baseImageId & 0xBFFFFFFF) + imageOffset; sub_98197C(imageId, offset.x, offset.y, bounds.x, bounds.y, bounds.z, offset.z, boundsOffset.x, boundsOffset.y, boundsOffset.z, get_current_rotation()); uint32 edi = RCT2_GLOBAL(0x00F44198, uint32) & (0b11111 << 19); // weird jump - imageId = baseImageId | edi + 0x3800000 + imageOffset + 12; + imageId = (baseImageId | edi) + 0x3800000 + imageOffset + 12; sub_98199C(imageId, offset.x, offset.y, bounds.x, bounds.y, bounds.z, offset.z, boundsOffset.x, boundsOffset.y, boundsOffset.z, get_current_rotation()); return true; }