changed cheat for loading solution tape to quietly remove inserted tape
authorHolger Schemel <info@artsoft.org>
Thu, 7 Dec 2017 20:43:14 +0000 (21:43 +0100)
committerHolger Schemel <info@artsoft.org>
Thu, 7 Dec 2017 20:43:14 +0000 (21:43 +0100)
src/tape.c

index a8ac4cea12a6d9974f541302ac0f85fb3e782abc..f8e6a5e0594214d8f29f372d70023398113b04e2 100644 (file)
@@ -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();
 }