fixed updating tiled graphics only when needed
authorHolger Schemel <info@artsoft.org>
Fri, 19 Nov 2021 09:34:23 +0000 (10:34 +0100)
committerHolger Schemel <info@artsoft.org>
Sat, 22 Jan 2022 16:58:27 +0000 (17:58 +0100)
src/tools.c

index 08f2cc1e56d4ceb22df90824ce61fcd9433b2423..0271abfc43d83eb615b99fe8663df7cd83e0a5d5 100644 (file)
@@ -3951,6 +3951,9 @@ void DrawLevelGraphicAnimationIfNeeded(int x, int y, int graphic)
   if (!IS_NEW_FRAME(GfxFrame[x][y], graphic))
     return;
 
+  if (ANIM_MODE(graphic) & ANIM_TILED)
+    return;
+
   DrawGraphicAnimation(sx, sy, graphic);
 
 #if 1