- The bonus screen's counter is a bit broken so help it to actually play Duke's speech.

(Hopefully) fixes #44
This commit is contained in:
Christoph Oelckers 2020-07-27 18:17:40 +02:00
parent 371a808d9e
commit 94b445db26

View file

@ -910,7 +910,7 @@ public:
switch ((totalclock >> 4) % 15) switch ((totalclock >> 4) % 15)
{ {
case 0: case 0:
if (bonuscnt == 6) if (bonuscnt = 6)
{ {
bonuscnt++; bonuscnt++;
S_PlaySound(SHOTGUN_COCK, CHAN_AUTO, CHANF_UI); S_PlaySound(SHOTGUN_COCK, CHAN_AUTO, CHANF_UI);
@ -953,7 +953,11 @@ public:
SetTotalClock(60 * 13); SetTotalClock(60 * 13);
} }
else if (totalclock < (1000000000)) else if (totalclock < (1000000000))
{
// force-set bonuscnt here so that it won't desync with the rest of the logic and Duke's voice can be heard.
bonuscnt = 6;
SetTotalClock(1000000000); SetTotalClock(1000000000);
}
} }
return 1; return 1;