From d6ffdb0aa12e21e0ba0ddb39c0668433eb8c2d1a Mon Sep 17 00:00:00 2001 From: zzril <> Date: Sun, 2 Apr 2023 00:24:37 +0200 Subject: [PATCH 1/3] Add Pitch values for steep diagonal drops to checks in UpdateScreamSound The checks in UpdateScreamSound (rct2: 0x006D796B) forgot about (steep) diagonal drops. This resulted in riders' screams getting cut-off on (long) steep diagonal drops once the last car reached the maximum drop angle, and the screams re-starting as soon as the first car reached the valley. --- src/openrct2/ride/Vehicle.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/openrct2/ride/Vehicle.cpp b/src/openrct2/ride/Vehicle.cpp index ea455677fc..1ca87f3e9b 100644 --- a/src/openrct2/ride/Vehicle.cpp +++ b/src/openrct2/ride/Vehicle.cpp @@ -5529,6 +5529,10 @@ OpenRCT2::Audio::SoundId Vehicle::UpdateScreamSound() continue; if (vehicle2->Pitch <= 15) return ProduceScreamSound(totalNumPeeps); + // Pitch 52 occurs on steep diagonal backward drops. + // (50 and 51 occur on gentle ones.) + if (vehicle2->Pitch == 52) + return ProduceScreamSound(totalNumPeeps); } return OpenRCT2::Audio::SoundId::Null; } @@ -5547,6 +5551,10 @@ OpenRCT2::Audio::SoundId Vehicle::UpdateScreamSound() continue; if (vehicle2->Pitch <= 23) return ProduceScreamSound(totalNumPeeps); + // Pitch 55 occurs on steep diagonal drops. + // (53 and 54 occur on gentle ones.) + if (vehicle2->Pitch == 55) + return ProduceScreamSound(totalNumPeeps); } return OpenRCT2::Audio::SoundId::Null; } From 4b392988033a75879f7d13ff0d367a975e6b5bd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Severin=20Paul=20H=C3=B6fer?= <84280965+zzril@users.noreply.github.com> Date: Thu, 15 Jun 2023 23:33:57 +0200 Subject: [PATCH 2/3] Bump network version --- src/openrct2/network/NetworkBase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2/network/NetworkBase.cpp b/src/openrct2/network/NetworkBase.cpp index 6a29107771..c89b9fd8d3 100644 --- a/src/openrct2/network/NetworkBase.cpp +++ b/src/openrct2/network/NetworkBase.cpp @@ -43,7 +43,7 @@ // It is used for making sure only compatible builds get connected, even within // single OpenRCT2 version. -#define NETWORK_STREAM_VERSION "8" +#define NETWORK_STREAM_VERSION "9" #define NETWORK_STREAM_ID OPENRCT2_VERSION "-" NETWORK_STREAM_VERSION From 7b3eb44a4d63a6a3f6eae432124fb6898fe91473 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Severin=20Paul=20H=C3=B6fer?= <84280965+zzril@users.noreply.github.com> Date: Tue, 20 Jun 2023 23:28:34 +0200 Subject: [PATCH 3/3] Update changelog.txt --- distribution/changelog.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index dcd604b95b..5334186c37 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -6,6 +6,7 @@ - Improved: [#20393, #20410] Add Cyrillic characters Ґґ, Ѕѕ, Єє, Іі, Її, and Јј to the sprite font. - Change: [#20110] Fix a few RCT1 build height parity discrepancies. - Fix: [#6152] Camera and UI are no longer locked at 40 Hz, providing a smoother experience. +- Fix: [#9534] Screams no longer cut-off on steep diagonal drops - Fix: [#19823] Parkobj: disallow overriding objects of different object types. - Fix: [#20083] Cannot use terrain surfaces with ID > 32 and terrain edges with ID > 16. - Fix: [#20111] All coaster types can access the new diagonal slope pieces.