From f4b089b7766b87eb700d9515b1604b3ec2296f09 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 16 Apr 2021 17:37:08 +0200 Subject: [PATCH] - fixed bad sound checkin Duke's intermission. --- source/games/duke/src/2d_d.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/source/games/duke/src/2d_d.cpp b/source/games/duke/src/2d_d.cpp index ac099e557..71ea4825d 100644 --- a/source/games/duke/src/2d_d.cpp +++ b/source/games/duke/src/2d_d.cpp @@ -830,7 +830,6 @@ class DDukeLevelSummaryScreen : public DScreenJob { const char* lastmapname; int gfx_offset; - int bonuscnt = 0; int speech = -1; int displaystate = 0; int dukeAnimStart; @@ -849,11 +848,6 @@ class DDukeLevelSummaryScreen : public DScreenJob }; - void SetTotalClock(int tc) - { - SetClock(tc * (uint64_t)1'000'000'000 / 120); - } - public: DDukeLevelSummaryScreen() : DScreenJob(fadein | fadeout) { @@ -933,7 +927,7 @@ public: } if (displaystate & dukeWait) { - if (speech <= 0 || !soundEngine->GetSoundPlayingInfo(SOURCE_None, nullptr, speech)) + if (speech <= 0 || !S_CheckSoundPlaying(speech)) state = finished; } }