From: Holger Schemel Date: Mon, 20 Sep 2021 18:27:22 +0000 (+0200) Subject: added extreme speedup when uploading all existing private tapes X-Git-Tag: 4.3.0.0~52 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=e11fa67d03ba1bfb469767ccdcc5ceae10f405f2;p=rocksndiamonds.git added extreme speedup when uploading all existing private tapes --- diff --git a/src/tape.c b/src/tape.c index cf65474a..ef7e8a5a 100644 --- a/src/tape.c +++ b/src/tape.c @@ -1694,6 +1694,19 @@ static int AutoPlayTapesExt(boolean initialize) if (!global.autoplay_all && !global.autoplay_level[level_nr]) continue; + if (global.autoplay_mode == AUTOPLAY_MODE_UPLOAD) + { + // speed things up when uploading all existing private tapes + if (autoplay.all_levelsets && !fileExists(getTapeFilename(level_nr))) + { + autoplay.num_tape_missing++; + + Print("Tape %03d: (no tape found)\n", level_nr); + + continue; + } + } + TapeErase(); TapeRewind(); // needed to reset "tape.auto_play_level_solved"