]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sys_win.c
also reject time stepping > 30 minutes (this threshold is < 1 hour to reject daylight...
[xonotic/darkplaces.git] / sys_win.c
index f12930d04b9d6624a99cc944c53cc0b0e4a6e499..5431221a12d0848455ab2614b45fd8a100577993 100644 (file)
--- a/sys_win.c
+++ b/sys_win.c
@@ -194,6 +194,10 @@ double Sys_DoubleTime (void)
                if (newtime - oldtime < -0.01)
                        Con_Printf("Sys_DoubleTime: time stepped backwards (went from %f to %f, difference %f)\n", oldtime, newtime, newtime - oldtime);
        }
+       else if (newtime > oldtime + 1800)
+       {
+               Con_Printf("Sys_DoubleTime: time stepped forward (went from %f to %f, difference %f)\n", oldtime, newtime, newtime - oldtime);
+       }
        else
                curtime += newtime - oldtime;
        oldtime = newtime;