- fixed infinite loop.

This commit is contained in:
Christoph Oelckers 2020-08-26 20:20:36 +02:00
parent 4e846f8d66
commit e5a4276a5a

View file

@ -83,8 +83,8 @@ static int FinishLevel(TArray<JobDesc> &jobs)
{ {
// There's really no choice but to enter an active wait loop here to make the sound play out. // There's really no choice but to enter an active wait loop here to make the sound play out.
PlayLocalSound(StaticSound[59], 0, true, CHANF_UI); PlayLocalSound(StaticSound[59], 0, true, CHANF_UI);
int nTicks = gameclock + 12; int nTicks = I_msTime() + 100;
while (nTicks > gameclock) while (nTicks > I_msTime())
{ {
I_GetEvent(); I_GetEvent();
soundEngine->UpdateSounds(I_GetTime()); soundEngine->UpdateSounds(I_GetTime());