X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Ftape.c;h=f8e6a5e0594214d8f29f372d70023398113b04e2;hp=a8ac4cea12a6d9974f541302ac0f85fb3e782abc;hb=d08e78f8f8fbad82d417ef27351676753c2c9fa3;hpb=7ac743d295c6e08f80f5649dd95112e3a94f0570 diff --git a/src/tape.c b/src/tape.c index a8ac4cea..f8e6a5e0 100644 --- a/src/tape.c +++ b/src/tape.c @@ -1066,13 +1066,20 @@ void TapeQuickLoad() void InsertSolutionTape() { - if (!TAPE_IS_EMPTY(tape)) + if (!fileExists(getSolutionTapeFilename(level_nr))) + { + Request("No solution tape for this level!", REQ_CONFIRM); + return; + } + + // if tape recorder already contains a tape, remove it without asking + TapeErase(); LoadSolutionTape(level_nr); if (TAPE_IS_EMPTY(tape)) - Request("No solution tape for this level!", REQ_CONFIRM); + Request("Loading solution tape for this level failed!", REQ_CONFIRM); DrawCompleteVideoDisplay(); }