- fixed bad sound checkin Duke's intermission.

This commit is contained in:
Christoph Oelckers 2021-04-16 17:37:08 +02:00
parent 7895d67b18
commit f4b089b776

View file

@ -830,7 +830,6 @@ class DDukeLevelSummaryScreen : public DScreenJob
{ {
const char* lastmapname; const char* lastmapname;
int gfx_offset; int gfx_offset;
int bonuscnt = 0;
int speech = -1; int speech = -1;
int displaystate = 0; int displaystate = 0;
int dukeAnimStart; int dukeAnimStart;
@ -849,11 +848,6 @@ class DDukeLevelSummaryScreen : public DScreenJob
}; };
void SetTotalClock(int tc)
{
SetClock(tc * (uint64_t)1'000'000'000 / 120);
}
public: public:
DDukeLevelSummaryScreen() : DScreenJob(fadein | fadeout) DDukeLevelSummaryScreen() : DScreenJob(fadein | fadeout)
{ {
@ -933,7 +927,7 @@ public:
} }
if (displaystate & dukeWait) if (displaystate & dukeWait)
{ {
if (speech <= 0 || !soundEngine->GetSoundPlayingInfo(SOURCE_None, nullptr, speech)) if (speech <= 0 || !S_CheckSoundPlaying(speech))
state = finished; state = finished;
} }
} }