1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-06 06:32:56 +01:00

fix #604: mute toilet flush sfx on title screen

This commit is contained in:
IntelOrca
2015-11-29 15:08:48 +00:00
committed by duncanspumpkin
parent b9f7f6f4a2
commit df1f5bad00

View File

@@ -3161,7 +3161,10 @@ static void peep_update_ride_sub_state_20(rct_peep* peep){
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++;