1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-21 23:03:04 +01:00

Fix #5451: Guests scream on every descent, no matter how small

This commit is contained in:
tylerleamon
2020-05-01 12:21:55 -04:00
committed by Gymnasiast
parent 158adfba82
commit 30e6b475a9
4 changed files with 11 additions and 9 deletions

View File

@@ -140,6 +140,7 @@ The following people are not part of the development team, but have been contrib
* (WantDiscussion) * (WantDiscussion)
* Tomáš Žilínek (TomasZilinek) * Tomáš Žilínek (TomasZilinek)
* Mustapha Elghoul (mustaphaelghoul) * Mustapha Elghoul (mustaphaelghoul)
* Tyler Leamon (tylerleamon)
## Toolchain ## Toolchain
* (Balletie) - macOS * (Balletie) - macOS

View File

@@ -9,6 +9,7 @@
- Change: [#11358] Switch copy and paste button positions in tile inspector. - Change: [#11358] Switch copy and paste button positions in tile inspector.
- Change: [#11449] Remove complete circuit requirement from Air Powered Vertical Coaster (for RCT1 parity). - Change: [#11449] Remove complete circuit requirement from Air Powered Vertical Coaster (for RCT1 parity).
- Fix: [#1148] Research funding dropdown not shown in finances window. - Fix: [#1148] Research funding dropdown not shown in finances window.
- Fix: [#5451] Guests scream on every descent, no matter how small.
- Fix: [#6119] Advertising campaign for ride window not updated properly (original bug). - Fix: [#6119] Advertising campaign for ride window not updated properly (original bug).
- Fix: [#7006] Submarine Ride is in the wrong research group. - Fix: [#7006] Submarine Ride is in the wrong research group.
- Fix: [#11072] Land and water tools working out of bounds (original bug). - Fix: [#11072] Land and water tools working out of bounds (original bug).

View File

@@ -32,7 +32,7 @@
// This string specifies which version of network stream current build uses. // This string specifies which version of network stream current build uses.
// It is used for making sure only compatible builds get connected, even within // It is used for making sure only compatible builds get connected, even within
// single OpenRCT2 version. // single OpenRCT2 version.
#define NETWORK_STREAM_VERSION "11" #define NETWORK_STREAM_VERSION "12"
#define NETWORK_STREAM_ID OPENRCT2_VERSION "-" NETWORK_STREAM_VERSION #define NETWORK_STREAM_ID OPENRCT2_VERSION "-" NETWORK_STREAM_VERSION
static Peep* _pickup_peep = nullptr; static Peep* _pickup_peep = nullptr;

View File

@@ -5467,7 +5467,7 @@ void Vehicle::UpdateSound()
switch (vehicleEntry->sound_range) switch (vehicleEntry->sound_range)
{ {
case 3: case SOUND_RANGE_WHISTLE:
screamId = scream_sound_id; screamId = scream_sound_id;
if (!(gCurrentTicks & 0x7F)) if (!(gCurrentTicks & 0x7F))
{ {
@@ -5486,7 +5486,7 @@ void Vehicle::UpdateSound()
screamVolume = 255; screamVolume = 255;
break; break;
case 4: case SOUND_RANGE_BELL:
screamId = scream_sound_id; screamId = scream_sound_id;
if (!(gCurrentTicks & 0x7F)) if (!(gCurrentTicks & 0x7F))
{ {
@@ -5511,7 +5511,7 @@ void Vehicle::UpdateSound()
screamId = UpdateScreamSound(); screamId = UpdateScreamSound();
if (screamId == SoundId::NoScream) if (screamId == SoundId::NoScream)
screamId = SoundId::Null; screamId = SoundId::Null;
if (screamId == SoundId::Null) else if (screamId == SoundId::Null)
goto loc_6D7A97; goto loc_6D7A97;
break; break;
} }
@@ -5612,13 +5612,13 @@ produceScream:
{ {
switch (vehicleEntry->sound_range) switch (vehicleEntry->sound_range)
{ {
case 0: case SOUND_RANGE_SCREAMS_0:
scream_sound_id = byte_9A3A14[r % 2]; scream_sound_id = byte_9A3A14[r % 2];
break; break;
case 1: case SOUND_RANGE_SCREAMS_1:
scream_sound_id = byte_9A3A18[r % 7]; scream_sound_id = byte_9A3A18[r % 7];
break; break;
case 2: case SOUND_RANGE_SCREAMS_2:
scream_sound_id = byte_9A3A16[r % 2]; scream_sound_id = byte_9A3A16[r % 2];
break; break;
default: default: