X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Ftape.c;h=f5d78c6a8cb14e5e2710780501538b73e35445af;hb=778c7803f078b162199125a9e6e6baf92d74c409;hp=ef7e8a5ab942f1c457c41a9b3328c57b818efaa4;hpb=e11fa67d03ba1bfb469767ccdcc5ceae10f405f2;p=rocksndiamonds.git diff --git a/src/tape.c b/src/tape.c index ef7e8a5a..f5d78c6a 100644 --- a/src/tape.c +++ b/src/tape.c @@ -1464,7 +1464,9 @@ static int AutoPlayTapesExt(boolean initialize) -1 }; + LevelDirTree *leveldir_current_last = leveldir_current; boolean init_level_set = FALSE; + int level_nr_last = level_nr; int i; if (!initialize) @@ -1850,12 +1852,24 @@ static int AutoPlayTapesExt(boolean initialize) return num_tapes; } + if (global.autoplay_mode == AUTOPLAY_MODE_UPLOAD) + { + Print("\n"); + PrintLine("=", 79); + Print("SUMMARY: %d tapes uploaded.\n", num_tapes); + PrintLine("=", 79); + } + // clear timestamp for batch tape upload (required after interactive upload) global.autoplay_time = 0; if (program.headless) CloseAllAndExit(0); + // when running interactively, restore last selected level set and number + leveldir_current = leveldir_current_last; + level_nr = level_nr_last; + return num_tapes; }