From: Holger Schemel Date: Thu, 7 Dec 2017 20:43:14 +0000 (+0100) Subject: changed cheat for loading solution tape to quietly remove inserted tape X-Git-Tag: 4.0.1.1~26 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=d08e78f8f8fbad82d417ef27351676753c2c9fa3;p=rocksndiamonds.git changed cheat for loading solution tape to quietly remove inserted tape --- 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(); }