fixed cheat for loading solution tape for Supaplex style levels with demo
authorHolger Schemel <info@artsoft.org>
Wed, 3 Jan 2018 19:37:30 +0000 (20:37 +0100)
committerHolger Schemel <info@artsoft.org>
Wed, 3 Jan 2018 19:37:30 +0000 (20:37 +0100)
src/tape.c

index f8e6a5e0594214d8f29f372d70023398113b04e2..71addab34829a8c1eab0a7152e98c384df1a35e7 100644 (file)
@@ -1066,7 +1066,10 @@ void TapeQuickLoad()
 
 void InsertSolutionTape()
 {
-  if (!fileExists(getSolutionTapeFilename(level_nr)))
+  boolean level_has_tape = (level.game_engine_type == GAME_ENGINE_TYPE_SP &&
+                           level.native_sp_level->demo.is_available);
+
+  if (!fileExists(getSolutionTapeFilename(level_nr)) && !level_has_tape)
   {
     Request("No solution tape for this level!", REQ_CONFIRM);