]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Autoscreenshot: write the actual match ID in the screenshot name so that it's possibl...
authorterencehill <piuntn@gmail.com>
Wed, 22 May 2024 22:20:26 +0000 (00:20 +0200)
committerterencehill <piuntn@gmail.com>
Wed, 22 May 2024 22:20:26 +0000 (00:20 +0200)
qcsrc/server/intermission.qc

index 7fe38c6500f239eb7756259cbd82337340f9c09c..ae753d275095fdfc084c74a9f3ce0e18ef29fa9d 100644 (file)
@@ -443,9 +443,8 @@ void IntermissionThink(entity this)
                this.autoscreenshot = -1;
                if(IS_REAL_CLIENT(this))
                {
-                       string num = strftime_s(); // strftime(false, "%s") isn't reliable, see strftime_s description
                        stuffcmd(this, sprintf("\ncl_autoscreenshot_screenshot %s %s; "
-                               "echo \"^5A screenshot has been taken at request of the server.\"\n", GetMapname(), num));
+                               "echo \"^5A screenshot has been taken at request of the server.\"\n", GetMapname(), matchid));
                }
                return;
        }