From 9588c69effe35923d714552e9df1c31baf097bb1 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Thu, 2 Jun 2016 08:02:14 +0200 Subject: [PATCH] small move of code block --- src/tape.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/tape.c b/src/tape.c index ff5f6199..4bc24523 100644 --- a/src/tape.c +++ b/src/tape.c @@ -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]; -- 2.34.1