improved performance of game actions loop in MM engine
[rocksndiamonds.git] / src / tools.c
index fbfb601af898908d12a8b5d1f2ee7ae255e7c5e5..5e5a2e1d01708640a63511faab85a617e596d843 100644 (file)
@@ -9427,6 +9427,17 @@ int getGraphicInfo_Delay(int graphic)
   return graphic_info[graphic].anim_delay;
 }
 
+boolean getGraphicInfo_NewFrame(int x, int y, int graphic)
+{
+  if (!IS_NEW_FRAME(GfxFrame[x][y], graphic))
+    return FALSE;
+
+  if (ANIM_MODE(graphic) & (ANIM_TILED | ANIM_RANDOM_STATIC))
+    return FALSE;
+
+  return TRUE;
+}
+
 void PlayMenuSoundExt(int sound)
 {
   if (sound == SND_UNDEFINED)