X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Ftape.c;h=e7a87852f7fa15411d40631513cfeb60f99c4666;hb=e6f748f5628abdd08d3d55e879de5b0d495a4a08;hp=cb6a9f9271b6b3f08d614f3c7a6b8ea7b72c581c;hpb=c2ae499bb6f4796659b255868521d269aa173a97;p=rocksndiamonds.git diff --git a/src/tape.c b/src/tape.c index cb6a9f92..e7a87852 100644 --- a/src/tape.c +++ b/src/tape.c @@ -1615,6 +1615,9 @@ static int AutoPlayTapesExt(boolean initialize) if (global.autoplay_mode == AUTOPLAY_MODE_FIX) options.mytapes = TRUE; + // set timestamp for batch tape upload + global.autoplay_time = time(NULL); + num_tapes = 0; init_level_set = TRUE; @@ -1823,6 +1826,9 @@ static int AutoPlayTapesExt(boolean initialize) return num_tapes; } + // clear timestamp for batch tape upload (required after interactive upload) + global.autoplay_time = 0; + if (program.headless) CloseAllAndExit(0);