Rewrite the EVENT_ANIMATESPRITES loop (G_DoEventAnimSprites calls) for clarity.

git-svn-id: https://svn.eduke32.com/eduke32@2893 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2012-08-13 18:26:13 +00:00
parent 0aec79ef8f
commit 6aad2578a3

View file

@ -6896,14 +6896,7 @@ skip:
if (apScriptGameEvent[EVENT_ANIMATESPRITES]) if (apScriptGameEvent[EVENT_ANIMATESPRITES])
{ {
j = spritesortcnt-1; for (j = spritesortcnt-1; j>=0; j--)
do
G_DoEventAnimSprites(j);
while (j--);
if (j < 0) return;
G_DoEventAnimSprites(j); G_DoEventAnimSprites(j);
} }
} }