From da32f9a4ed46c609aa4af7ad30649c9abd0a530f Mon Sep 17 00:00:00 2001 From: TehRealSalt Date: Tue, 20 Feb 2018 19:33:50 -0500 Subject: [PATCH] Fixed fourth taunt sound not playing % 4 would output 0 to 3, not 1 to 4 guys :V --- src/k_kart.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/k_kart.c b/src/k_kart.c index b767e731..95602ca2 100644 --- a/src/k_kart.c +++ b/src/k_kart.c @@ -1192,16 +1192,16 @@ static void K_PlayTauntSound(mobj_t *source) { switch (P_RandomFixed() % 4) { - case 1: + case 0: S_StartSound(source, sfx_taunt1); return; - case 2: + case 1: S_StartSound(source, sfx_taunt2); return; - case 3: + case 2: S_StartSound(source, sfx_taunt3); return; - case 4: + case 3: S_StartSound(source, sfx_taunt4); return; }