From 115f6007355d951c14ea0fbccf2fa67a2b813485 Mon Sep 17 00:00:00 2001 From: duncanspumpkin Date: Tue, 16 Feb 2016 19:22:15 +0000 Subject: [PATCH] Fix #2942. Stacked shops now show correct supports. Issue was caused by overwriting the variable that is used as a flag to disable supports. --- src/ride/track_paint.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ride/track_paint.c b/src/ride/track_paint.c index b984f01008..81bec94ec2 100644 --- a/src/ride/track_paint.c +++ b/src/ride/track_paint.c @@ -1039,7 +1039,7 @@ static void shop_paint_setup(uint8 rideIndex, uint8 trackSequence, uint8 directi height16 += 48; if (RCT2_GLOBAL(0x00141E9D8, sint16) < height16) { RCT2_GLOBAL(0x00141E9D8, sint16) = height16; - RCT2_GLOBAL(0x00141E9DA, sint16) = 32; + RCT2_GLOBAL(0x00141E9DA, uint8) = 32; } } @@ -1127,7 +1127,7 @@ static void facility_paint_setup(uint8 rideIndex, uint8 trackSequence, uint8 dir height16 += 32; if (RCT2_GLOBAL(0x00141E9D8, sint16) < height16) { RCT2_GLOBAL(0x00141E9D8, sint16) = height16; - RCT2_GLOBAL(0x00141E9DA, sint16) = 32; + RCT2_GLOBAL(0x00141E9DA, uint8) = 32; } }