]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
make the match ID more unique
authorRudolf Polzer <divVerent@xonotic.org>
Tue, 16 Aug 2011 12:26:45 +0000 (14:26 +0200)
committerRudolf Polzer <divVerent@xonotic.org>
Tue, 16 Aug 2011 12:26:45 +0000 (14:26 +0200)
qcsrc/server/g_world.qc

index adb7237780b16ada37f7925aa9a6d43aadfee9c3..fc29f2af83c0e575894e49b9babb0cf4bfbd56f8 100644 (file)
@@ -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));