only save demo in map command if you atleast spend 35 seconds in one map

This commit is contained in:
Alug committed 2024-09-05 17:36:53 +02:00
1 parent 57b5614124
commit 33ddb1fa4f
1 file changed
+2 -1
+2 -1
View File
@@ -2970,7 +2970,8 @@ static void Command_Map_f(void)
}
}
if (demo.recording && demo.savemode != DSM_NOTSAVING && ((cv_demosamemap.value && newmapnum == gamemap) || newmapnum != gamemap))
// spend atleast 35 seconds in one map
if (demo.recording && demo.savemode != DSM_NOTSAVING && (timeinmap > 1463) && ((cv_demosamemap.value && newmapnum == gamemap) || newmapnum != gamemap))
G_SaveDemo();
fromlevelselect = false;