X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Ftape.c;h=f05a3b45d18b4499f8123bb4b0fa6c353e5ff361;hb=d42e0a36609c7990f8b9f6fcd80f37f65bcf5149;hp=880c4f9ee8d3d879282c540e4587a8c84c4a1344;hpb=74c0f7de91268e40d15948f473eac51a9760b9c0;p=rocksndiamonds.git diff --git a/src/tape.c b/src/tape.c index 880c4f9e..f05a3b45 100644 --- a/src/tape.c +++ b/src/tape.c @@ -687,6 +687,19 @@ void TapeQuickLoad() } } +void InsertSolutionTape() +{ + if (!TAPE_IS_EMPTY(tape)) + return; + + LoadSolutionTape(level_nr); + + if (TAPE_IS_EMPTY(tape)) + Request("No solution tape for this level !", REQ_CONFIRM); + + DrawCompleteVideoDisplay(); +} + /* ------------------------------------------------------------------------- * * tape autoplay functions @@ -762,14 +775,18 @@ void AutoPlayTape() printf("Level %03d: ", level_nr); LoadLevel(level_nr); - if (level.no_level_file) + if (level.no_valid_file) { printf("(no level)\n"); continue; } - LoadTape(level_nr); + LoadSolutionTape(level_nr); +#if 1 + if (tape.no_valid_file) +#else if (TAPE_IS_EMPTY(tape)) +#endif { printf("(no tape)\n"); continue;