fixed bug with tape length less than "pause before end" seconds
authorHolger Schemel <info@artsoft.org>
Fri, 4 Feb 2022 08:10:37 +0000 (09:10 +0100)
committerHolger Schemel <info@artsoft.org>
Sun, 6 Feb 2022 02:05:36 +0000 (03:05 +0100)
src/tape.c

index 0a63b79578c0aee5f24dacbd32c1fe7348d1a4e4..a6ab98561aa32c9f2dcc213cbc07312941cfa3d2 100644 (file)
@@ -985,7 +985,7 @@ byte *TapePlayAction(void)
 
   if (tape.pause_before_end)  // stop some seconds before end of tape
   {
-    if (TapeTime > tape.length_seconds - TAPE_PAUSE_SECONDS_BEFORE_DEATH)
+    if (TapeTime > (int)tape.length_seconds - TAPE_PAUSE_SECONDS_BEFORE_DEATH)
     {
       TapeStopWarpForward();
       TapeTogglePause(TAPE_TOGGLE_MANUAL);