From db85b413b5e5537f3c02c23347dacf57a0886a20 Mon Sep 17 00:00:00 2001 From: Marijn van der Werf Date: Sat, 1 Oct 2016 01:08:12 +0200 Subject: [PATCH] Fix Circus Show --- src/ride/gentle/circus_show.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ride/gentle/circus_show.c b/src/ride/gentle/circus_show.c index 5cbe977aad..424d2ec04b 100644 --- a/src/ride/gentle/circus_show.c +++ b/src/ride/gentle/circus_show.c @@ -37,12 +37,13 @@ static void paint_circus_show_tent(uint8 rideIndex, uint8 direction, sint8 al, s } uint32 imageColourFlags = gTrackColours[SCHEME_MISC]; + uint32 imageId = ride_type->vehicles[0].base_image_id; if (imageColourFlags == 0x20000000) { imageColourFlags = ride->vehicle_colours[0].body_colour << 19 | ride->vehicle_colours[0].trim_colour << 24 | 0xA0000000; + imageId += direction; } - uint32 imageId = (ride_type->vehicles[0].base_image_id + direction) | imageColourFlags; - sub_98197C(imageId, al, cl, 24, 24, 47, height + 3, al + 16, cl + 16, height + 3, get_current_rotation()); + sub_98197C(imageId | imageColourFlags, al, cl, 24, 24, 47, height + 3, al + 16, cl + 16, height + 3, get_current_rotation()); g_currently_drawn_item = savedMapElement; gPaintInteractionType = VIEWPORT_INTERACTION_ITEM_RIDE;