mirror of https://github.com/OpenRCT2/OpenRCT2.git
fix #604: mute toilet flush sfx on title screen
This commit is contained in:
parent
b9f7f6f4a2
commit
df1f5bad00
|
@ -3161,7 +3161,10 @@ static void peep_update_ride_sub_state_20(rct_peep* peep){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
audio_play_sound_at_location(SOUND_TOILET_FLUSH, peep->x, peep->y, peep->z);
|
// Do not play toilet flush sound on title screen as its considered loud and annoying
|
||||||
|
if (!(RCT2_GLOBAL(RCT2_ADDRESS_SCREEN_FLAGS, uint8) & SCREEN_FLAGS_TITLE_DEMO)) {
|
||||||
|
audio_play_sound_at_location(SOUND_TOILET_FLUSH, peep->x, peep->y, peep->z);
|
||||||
|
}
|
||||||
|
|
||||||
peep->sub_state++;
|
peep->sub_state++;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue