From 5854585ffa0434162fd1fa18ac535e7831f346d1 Mon Sep 17 00:00:00 2001 From: div0 Date: Tue, 22 Jul 2008 06:23:29 +0000 Subject: [PATCH] "teamscores" log entry git-svn-id: svn://svn.icculus.org/nexuiz/trunk@3880 f962a42d-fe04-0410-a3ab-8c8b0445ebaa --- data/qcsrc/server/g_world.qc | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/data/qcsrc/server/g_world.qc b/data/qcsrc/server/g_world.qc index f9c8994f6..5c427e7d8 100644 --- a/data/qcsrc/server/g_world.qc +++ b/data/qcsrc/server/g_world.qc @@ -1010,6 +1010,19 @@ void DumpStats(float final) } } + if(g_ctf) + if(cvar("g_ctf_win_mode") != 2) + { + s = strcat(":teamscores:", ftos(caps_team1), ":"); + s = strcat(s, ftos(caps_team2), ":0:0"); + if(to_console) + ServerConsoleEcho(s, TRUE); + if(to_eventlog) + GameLogEcho(s, TRUE); + if(to_file) + fputs(file, strcat(s, "\n")); + } + if(to_console) ServerConsoleEcho(":end", FALSE); if(to_eventlog) -- 2.39.2