]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/world.qc
Use directly strftime_s() since strftime(false, "%s") isn't reliable
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / world.qc
index 7b9697d1740476030af313e0cc6c2a5827de5e19..9cf7b18d99c54e90849879e40419f6c63b5a2277 100644 (file)
@@ -839,9 +839,7 @@ spawnfunc(worldspawn)
        // character set: ASCII 33-126 without the following characters: : ; ' " \ $
        if(autocvar_sv_eventlog)
        {
-               string num = strftime(false, "%s");
-               if (num == "")
-                       num = strftime_s();
+               string num = strftime_s(); // strftime(false, "%s") isn't reliable, see strftime_s description
                string s = sprintf("%s.%s.%06d", itos(autocvar_sv_eventlog_files_counter), num, floor(random() * 1000000));
                matchid = strzone(s);