From 9fc75969833b5981baacf05567b0833232302fb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Severin=20Paul=20H=C3=B6fer?= <84280965+zzril@users.noreply.github.com> Date: Thu, 6 Jul 2023 00:00:20 +0200 Subject: [PATCH 1/2] Wrap bank_rotation access in GetPaintBankRotation --- src/openrct2/ride/VehiclePaint.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openrct2/ride/VehiclePaint.cpp b/src/openrct2/ride/VehiclePaint.cpp index e0960b14ef..d50efc818b 100644 --- a/src/openrct2/ride/VehiclePaint.cpp +++ b/src/openrct2/ride/VehiclePaint.cpp @@ -3352,7 +3352,7 @@ static void VehiclePitchUp16BankedRight45( static void VehiclePitchUp16( PaintSession& session, const Vehicle* vehicle, int32_t imageDirection, int32_t z, const CarEntry* carEntry) { - switch (vehicle->bank_rotation) + switch (GetPaintBankRotation(vehicle)) { case 0: VehiclePitchUp16Unbanked(session, vehicle, imageDirection, z, carEntry); @@ -3594,7 +3594,7 @@ static void VehiclePitchDown16BankedRight45( static void VehiclePitchDown16( PaintSession& session, const Vehicle* vehicle, int32_t imageDirection, int32_t z, const CarEntry* carEntry) { - switch (vehicle->bank_rotation) + switch (GetPaintBankRotation(vehicle)) { case 0: VehiclePitchDown16Unbanked(session, vehicle, imageDirection, z, carEntry); From 2dc42a0d69cf60d5ab1b1f4a66e20009f8e5303f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Severin=20Paul=20H=C3=B6fer?= <84280965+zzril@users.noreply.github.com> Date: Thu, 6 Jul 2023 00:21:03 +0200 Subject: [PATCH 2/2] Update changelog.txt --- distribution/changelog.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 778940a7f2..9e733c18c8 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -24,6 +24,7 @@ - Fix: [#20361] Crash when using random map generation. - Fix: [#20364] Adding too much money with cheats causes an overflow. - Fix: [#20365] Money cheat input does not support negative values. +- Fix: [#20389] Reversed vehicles are now correctly banked on diagonal slopes. - Fix: [#20413] Crash when attempting to navigate an empty console history. - Fix: [#20417] Plugin/custom windows are missing the left border in the title bar. - Fix: [#20429] Error window tooltip not closing after 8 seconds.