- allow skipping in the end of game sequence.

This commit is contained in:
Christoph Oelckers 2020-01-24 21:41:47 +01:00
parent ccfefaa9be
commit fd1e63b996

View file

@ -1521,6 +1521,7 @@ void CreditsLevel(void)
gs.BorderNum = save; gs.BorderNum = save;
twod->ClearScreen(); twod->ClearScreen();
videoNextPage(); videoNextPage();
inputState.ClearAllInput();
// Lo Wang feel like singing! // Lo Wang feel like singing!
PlaySound(DIGI_JG95012, v3df_none, CHAN_VOICE); PlaySound(DIGI_JG95012, v3df_none, CHAN_VOICE);
@ -1528,21 +1529,16 @@ void CreditsLevel(void)
{ {
DoUpdateSounds(); DoUpdateSounds();
handleevents(); handleevents();
if (inputState.CheckAllInput())
break;
videoNextPage();
} }
StopSound();
// try 14 then 2 then quit // try 14 then 2 then quit
if (!PlaySong(nullptr, ThemeSongs[5], ThemeTrack[5], true)) if (!PlaySong(nullptr, ThemeSongs[5], ThemeTrack[5], true))
{ {
if (!PlaySong(nullptr, nullptr, 2, true)) PlaySong(nullptr, nullptr, 2, true);
{
PlaySound(DIGI_NOLIKEMUSIC, v3df_none, CHAN_VOICE);
while (soundEngine->IsSourcePlayingSomething(SOURCE_None, nullptr, CHAN_VOICE))
{
DoUpdateSounds();
handleevents();
}
return;
}
} }
ready2send = 0; ready2send = 0;
@ -1577,7 +1573,7 @@ void CreditsLevel(void)
curpic = CREDITS1_PIC; curpic = CREDITS1_PIC;
} }
if (inputState.GetKeyStatus(KEYSC_ESC)) if (inputState.CheckAllInput())
break; break;
} }