Fix being able to carry rewind state where it shouldn't be

This commit is contained in:
fickleheart 2019-04-13 14:22:48 -05:00
parent 5fcafb643b
commit eb9c9885a9
2 changed files with 10 additions and 1 deletions

View file

@ -1956,7 +1956,14 @@ boolean G_Responder(event_t *ev)
)
{
paused = !paused;
if (paused)
if (demo.rewinding)
{
G_ConfirmRewind(leveltime);
paused = true;
S_PauseAudio();
}
else if (paused)
S_PauseAudio();
else
S_ResumeAudio();

View file

@ -5184,6 +5184,8 @@ void M_ReplayHut(INT32 choice)
M_SetupNextMenu(&MISC_ReplayHutDef);
G_SetGamestate(GS_TIMEATTACK);
demo.rewinding = false;
S_ChangeMusicInternal("replst", true);
}