X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Ftape.c;h=1e072cd4ffa567c9543e5999d10db07c52ce3eaf;hb=bd9eb07192105e183db44f03d675332ffb2b767a;hp=f75bc897e6f4579f1908050253b3ce1c0c2c3f01;hpb=a21695563e089926d8e859e1ee0f3b077c8a7ed0;p=rocksndiamonds.git diff --git a/src/tape.c b/src/tape.c index f75bc897..1e072cd4 100644 --- a/src/tape.c +++ b/src/tape.c @@ -1079,12 +1079,18 @@ void TapeQuickLoad() } } -boolean InsertSolutionTape() +boolean hasSolutionTape() { + boolean tape_file_exists = 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) + return (tape_file_exists || level_has_tape); +} + +boolean InsertSolutionTape() +{ + if (!hasSolutionTape()) { Request("No solution tape for this level!", REQ_CONFIRM);