From: terencehill Date: Wed, 22 May 2024 22:20:26 +0000 (+0200) Subject: Autoscreenshot: write the actual match ID in the screenshot name so that it's possibl... X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3fef866b7fc44bd24fb1520f6e4d78c3ca4f2221;p=xonotic%2Fxonotic-data.pk3dir.git Autoscreenshot: write the actual match ID in the screenshot name so that it's possible to find the match in Xonstats too --- diff --git a/qcsrc/server/intermission.qc b/qcsrc/server/intermission.qc index 7fe38c650..ae753d275 100644 --- a/qcsrc/server/intermission.qc +++ b/qcsrc/server/intermission.qc @@ -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; }