added sending timestamp of batch tape uploads to score server
[rocksndiamonds.git] / src / tape.c
index cb6a9f9271b6b3f08d614f3c7a6b8ea7b72c581c..e7a87852f7fa15411d40631513cfeb60f99c4666 100644 (file)
@@ -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);