JFDuke3D port: Display DUKETEAM.ANM at the end of episode 3 under v1.3D.

Fix for end-of-game sequence with 1.3D data, by Turrican.

git-svn-id: https://svn.eduke32.com/eduke32@2395 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2012-03-04 09:29:05 +00:00
parent ef02682c94
commit 56b40e233e

View file

@ -11209,13 +11209,49 @@ void G_BonusScreen(int32_t bonusonly)
MOUSE_ClearButton(LEFT_MOUSE);
KB_FlushKeyBoardQueue();
totalclock = 0;
if (PLUTOPAK)
{
while (!KB_KeyWaiting() && totalclock < 120 && !MOUSE_GetButtons()&LEFT_MOUSE && !BUTTON(gamefunc_Fire) && !BUTTON(gamefunc_Open))
{
handleevents();
Net_GetPackets();
}
}
else
{
while (!KB_KeyWaiting() && !MOUSE_GetButtons()&LEFT_MOUSE && !BUTTON(gamefunc_Fire) && !BUTTON(gamefunc_Open))
{
handleevents();
Net_GetPackets();
}
}
ENDANM:
if (!PLUTOPAK)
{
FX_StopAllSounds();
S_ClearSoundLocks();
S_PlaySound(ENDSEQVOL3SND4);
clearview(0L);
nextpage();
G_PlayAnim("DUKETEAM.ANM",4);
KB_FlushKeyBoardQueue();
MOUSE_ClearButton(LEFT_MOUSE);
while (!KB_KeyWaiting() && !MOUSE_GetButtons()&LEFT_MOUSE && !BUTTON(gamefunc_Fire) && !BUTTON(gamefunc_Open))
{
handleevents();
Net_GetPackets();
}
clearview(0L);
nextpage();
G_FadePalette(0,0,0,63);
}
MOUSE_ClearButton(LEFT_MOUSE);
FX_StopAllSounds();
S_ClearSoundLocks();