+static boolean isPausedOnPlayfield(struct GlobalAnimPartControlInfo *part)
+{
+ // only pause playfield animations when playing
+ if (game_status != GAME_MODE_PLAYING)
+ return FALSE;
+
+ // do not pause animations when game ended (and engine is running)
+ if (checkGameEnded())
+ return FALSE;
+
+ // only pause animations on playfield
+ if (!part->class_playfield)
+ return FALSE;
+
+ // only pause animations when engine is paused or request dialog is open(ing)
+ if (!tape.pausing && !game.request_active_or_moving)
+ return FALSE;
+
+ return TRUE;
+}
+