From: Rudolf Polzer Date: Tue, 16 Aug 2011 12:26:45 +0000 (+0200) Subject: make the match ID more unique X-Git-Tag: xonotic-v0.5.0~137 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0dd9d632dec26e1913e7f272ca3588d2598eb779;p=xonotic%2Fxonotic-data.pk3dir.git make the match ID more unique --- 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));