small move of code block
authorHolger Schemel <info@artsoft.org>
Thu, 2 Jun 2016 06:02:14 +0000 (08:02 +0200)
committerHolger Schemel <info@artsoft.org>
Thu, 2 Jun 2016 06:02:14 +0000 (08:02 +0200)
src/tape.c

index ff5f6199ef6f5c482e5d75d8cbb32a644a92b71a..4bc245234c81d607ab1eb566a24dbc8902b8c7d0 100644 (file)
@@ -785,6 +785,16 @@ byte *TapePlayAction()
     }
   }
 
+  if (tape.counter >= tape.length)     /* end of tape reached */
+  {
+    if (tape.warp_forward && !tape.auto_play)
+      TapeTogglePause(TAPE_TOGGLE_MANUAL);
+    else
+      TapeStop();
+
+    return NULL;
+  }
+
   if (update_video_display && !tape.deactivate_display)
   {
     if (tape.pause_before_end)
@@ -796,16 +806,6 @@ byte *TapePlayAction()
       DrawVideoDisplaySymbol(VIDEO_STATE_WARP2_ON);
   }
 
-  if (tape.counter >= tape.length)     /* end of tape reached */
-  {
-    if (tape.warp_forward && !tape.auto_play)
-      TapeTogglePause(TAPE_TOGGLE_MANUAL);
-    else
-      TapeStop();
-
-    return NULL;
-  }
-
   for (i = 0; i < MAX_PLAYERS; i++)
     action[i] = tape.pos[tape.counter].action[i];