From: Holger Schemel Date: Thu, 2 Jun 2016 06:02:14 +0000 (+0200) Subject: small move of code block X-Git-Tag: 4.0.0.0-rc3~29 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=9588c69effe35923d714552e9df1c31baf097bb1;p=rocksndiamonds.git small move of code block --- 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];