Change when the kstart sound occours, because getting a lag spike at a bad time can still make it happen inaccurately early.

This commit is contained in:
toaster 2022-04-29 21:54:22 +01:00
parent f13149c061
commit 2036a62043
2 changed files with 10 additions and 9 deletions

View file

@ -1308,6 +1308,16 @@ void G_StartTitleCard(void)
// prepare status bar
ST_startTitleCard();
// play the sound
{
sfxenum_t kstart = sfx_kstart;
if (bossinfo.boss)
kstart = sfx_ssa021;
else if (encoremode)
kstart = sfx_ruby2;
S_StartSound(NULL, kstart);
}
// start the title card
WipeStageTitle = (!titlemapinaction);
}

View file

@ -4259,15 +4259,6 @@ boolean P_LoadLevel(boolean fromnetsave, boolean reloadinggamestate)
}
F_RunWipe(wipedefs[wipe_level_toblack], false, ((levelfadecol == 0) ? "FADEMAP1" : "FADEMAP0"), false, false);
{
sfxenum_t kstart = sfx_kstart;
if (bossinfo.boss)
kstart = sfx_ssa021;
else if (encoremode)
kstart = sfx_ruby2;
S_StartSound(NULL, kstart);
}
}
/*if (!titlemapinaction)
wipegamestate = GS_LEVEL;*/