Fixed fourth taunt sound not playing

% 4 would output 0 to 3, not 1 to 4 guys :V
This commit is contained in:
TehRealSalt 2018-02-20 19:33:50 -05:00
parent 11e2d9c6cf
commit c550bc3df1

View file

@ -1192,16 +1192,16 @@ static void K_PlayTauntSound(mobj_t *source)
{ {
switch (P_RandomFixed() % 4) switch (P_RandomFixed() % 4)
{ {
case 1: case 0:
S_StartSound(source, sfx_taunt1); S_StartSound(source, sfx_taunt1);
return; return;
case 2: case 1:
S_StartSound(source, sfx_taunt2); S_StartSound(source, sfx_taunt2);
return; return;
case 3: case 2:
S_StartSound(source, sfx_taunt3); S_StartSound(source, sfx_taunt3);
return; return;
case 4: case 3:
S_StartSound(source, sfx_taunt4); S_StartSound(source, sfx_taunt4);
return; return;
} }