Fix rainbow bridge sound spam

This commit is contained in:
Garrett Cox 2024-10-25 23:35:22 -05:00
parent 20ddc7a536
commit 804584e79d

View File

@ -610,7 +610,11 @@ void TimeSaverOnVanillaBehaviorHandler(GIVanillaBehavior id, bool* should, va_li
case VB_PLAY_RAINBOW_BRIDGE_CS: { case VB_PLAY_RAINBOW_BRIDGE_CS: {
if (CVarGetInteger(CVAR_ENHANCEMENT("TimeSavers.SkipCutscene.Story"), IS_RANDO)) { if (CVarGetInteger(CVAR_ENHANCEMENT("TimeSavers.SkipCutscene.Story"), IS_RANDO)) {
*should = false; *should = false;
func_800F595C(NA_BGM_BRIDGE_TO_GANONS); if (!Flags_GetEventChkInf(EVENTCHKINF_RAINBOW_BRIDGE_BUILT)) {
func_800F595C(NA_BGM_BRIDGE_TO_GANONS);
// This would have been set 2 frames later, but we're skipping now so the sound doesn't play twice
Flags_SetEventChkInf(EVENTCHKINF_RAINBOW_BRIDGE_BUILT);
}
} }
break; break;
} }