From d08e78f8f8fbad82d417ef27351676753c2c9fa3 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Thu, 7 Dec 2017 21:43:14 +0100 Subject: [PATCH] changed cheat for loading solution tape to quietly remove inserted tape --- src/tape.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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(); } -- 2.34.1