diff --git a/polymer/eduke32/source/anim.c b/polymer/eduke32/source/anim.c index 3bddf4476..ada2dfbe9 100644 --- a/polymer/eduke32/source/anim.c +++ b/polymer/eduke32/source/anim.c @@ -317,13 +317,10 @@ void G_PlayAnim(const char *fn,char t) // after rendering the frame but before displaying: maybe play sound... framenum++; - if (soundidx < numtotalsounds) + while (soundidx < numtotalsounds && anim_hi_sounds[animidx][2*soundidx] == framenum) { - if (anim_hi_sounds[animidx][2*soundidx] == framenum) - { - S_PlaySound(anim_hi_sounds[animidx][2*soundidx+1]); - soundidx++; - } + S_PlaySound(anim_hi_sounds[animidx][2*soundidx+1]); + soundidx++; } // this and showframe() instead of nextpage() are so that