From e03753c1399ff375e8f8b4938207edae83e2ff74 Mon Sep 17 00:00:00 2001 From: Michael Steenbeek Date: Thu, 30 Jul 2020 20:29:26 +0200 Subject: [PATCH] Fix #12498: Circus construction ghost does not rotate (#12519) --- distribution/changelog.txt | 1 + src/openrct2/ride/gentle/Circus.cpp | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 0bd2145b2b..c608d54286 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -54,6 +54,7 @@ - Fix: [#12297] OpenGL renderer causing artifacts. - Fix: [#12312] Softlock when loading save file via command line fails. - Fix: [#12486] `set-rct2` has a broken g1.dat check. +- Fix: [#12498] Circus construction ghost does not rotate (original bug). - Fix: [#12505] Stores selling multiple items can only have the first product advertised. - Fix: [#12506] Cannot advertise food if there are no rides in the park. - Fix: 'j' character has broken kerning (original bug). diff --git a/src/openrct2/ride/gentle/Circus.cpp b/src/openrct2/ride/gentle/Circus.cpp index bf51352f7b..40d03b831f 100644 --- a/src/openrct2/ride/gentle/Circus.cpp +++ b/src/openrct2/ride/gentle/Circus.cpp @@ -37,11 +37,10 @@ static void paint_circus_tent( } uint32_t imageColourFlags = session->TrackColours[SCHEME_MISC]; - uint32_t imageId = rideEntry->vehicles[0].base_image_id; + uint32_t imageId = rideEntry->vehicles[0].base_image_id + direction; if (imageColourFlags == IMAGE_TYPE_REMAP) { imageColourFlags = SPRITE_ID_PALETTE_COLOUR_2(ride->vehicle_colours[0].Body, ride->vehicle_colours[0].Trim); - imageId += direction; } sub_98197C(session, imageId | imageColourFlags, al, cl, 24, 24, 47, height + 3, al + 16, cl + 16, height + 3);