From 6aad2578a3105132da6d05f4479a9cae294662f3 Mon Sep 17 00:00:00 2001 From: helixhorned Date: Mon, 13 Aug 2012 18:26:13 +0000 Subject: [PATCH] Rewrite the EVENT_ANIMATESPRITES loop (G_DoEventAnimSprites calls) for clarity. git-svn-id: https://svn.eduke32.com/eduke32@2893 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/game.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/polymer/eduke32/source/game.c b/polymer/eduke32/source/game.c index 72aaef997..cfb4e122a 100644 --- a/polymer/eduke32/source/game.c +++ b/polymer/eduke32/source/game.c @@ -6896,15 +6896,8 @@ skip: if (apScriptGameEvent[EVENT_ANIMATESPRITES]) { - j = spritesortcnt-1; - - do + for (j = spritesortcnt-1; j>=0; j--) G_DoEventAnimSprites(j); - while (j--); - - if (j < 0) return; - - G_DoEventAnimSprites(j); } } #if 0 // def _MSC_VER