From 0dd9d632dec26e1913e7f272ca3588d2598eb779 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Tue, 16 Aug 2011 14:26:45 +0200 Subject: [PATCH] make the match ID more unique --- qcsrc/server/g_world.qc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/qcsrc/server/g_world.qc b/qcsrc/server/g_world.qc index adb723778..fc29f2af8 100644 --- a/qcsrc/server/g_world.qc +++ b/qcsrc/server/g_world.qc @@ -713,8 +713,7 @@ void spawnfunc_worldspawn (void) GameLogInit(); // prepare everything if(autocvar_sv_eventlog) { - s = strcat(ftos(autocvar_sv_eventlog_files_counter), "."); - s = strcat(s, ftos(random())); + s = sprintf("%d.%s.%06d", ftos(autocvar_sv_eventlog_files_counter), strftime(FALSE, "%s"), floor(random() * 1000000)); matchid = strzone(s); GameLogEcho(strcat(":gamestart:", GetGametype(), "_", GetMapname(), ":", s)); -- 2.39.2