From: Holger Schemel Date: Fri, 4 Feb 2022 08:10:37 +0000 (+0100) Subject: fixed bug with tape length less than "pause before end" seconds X-Git-Tag: 4.3.1.1~11 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=c44dfe1e8ab65317cc4468352084a75dc19067a4;p=rocksndiamonds.git fixed bug with tape length less than "pause before end" seconds --- diff --git a/src/tape.c b/src/tape.c index 0a63b795..a6ab9856 100644 --- a/src/tape.c +++ b/src/tape.c @@ -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);