- Duke+RR: Don't quit the level summary screen through timeout when a sound is still playing.

Fixes #359
This commit is contained in:
Christoph Oelckers 2020-09-06 23:23:17 +02:00
parent 38cd38f0eb
commit cbbbe2a09b
2 changed files with 10 additions and 2 deletions

View file

@ -924,7 +924,11 @@ public:
break;
}
}
else if (currentclock > (10240 + 120L)) return 0;
else if (currentclock > (10240 + 120L))
{
if (!skiprequest && soundEngine->GetSoundPlayingInfo(SOURCE_None, nullptr, -1)) return 1;
return 0;
}
else
{
switch((currentclock >> 5) & 3)

View file

@ -506,7 +506,11 @@ public:
}
}
}
else if (currentclock > (10240 + 120L)) return 0;
else if (currentclock > (10240 + 120L))
{
if (!skiprequest && soundEngine->GetSoundPlayingInfo(SOURCE_None, nullptr, -1)) return 1;
return 0;
}
if (currentclock > 10240 && currentclock < 10240 + 10240)
SetTotalClock(1024);