- BONUS_SPEECH1-4 are not continuous.

Fixes #83
This commit is contained in:
Christoph Oelckers 2020-07-30 18:36:52 +02:00
parent 02dfa10d27
commit 6980c64f7b

View file

@ -894,7 +894,8 @@ public:
{
bonuscnt++;
S_PlaySound(SHOTGUN_COCK, CHAN_AUTO, CHANF_UI);
S_PlaySound(BONUS_SPEECH1 + (rand() & 3), CHAN_AUTO, CHANF_UI);
static const uint16_t speeches[] = { BONUS_SPEECH1, BONUS_SPEECH2, BONUS_SPEECH3, BONUS_SPEECH4};
S_PlaySound(speeches[(rand() & 3)], CHAN_AUTO, CHANF_UI);
}
case 1:
case 4: