From ec40995bc4808ab672208e2d202af0ce4bd1ca64 Mon Sep 17 00:00:00 2001 From: div0 Date: Mon, 3 Apr 2006 06:14:23 +0000 Subject: [PATCH] sv_logspam_console now enables a slightly modified format of sv_logscores_console: the player name is prepended by the player ID. One may or may not still want to enable sv_logscores_bots. git-svn-id: svn://svn.icculus.org/nexuiz/trunk/data@1215 f962a42d-fe04-0410-a3ab-8c8b0445ebaa --- qcsrc/server/gamec/g_world.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/qcsrc/server/gamec/g_world.c b/qcsrc/server/gamec/g_world.c index 4055bdb97..fde9f7a8c 100644 --- a/qcsrc/server/gamec/g_world.c +++ b/qcsrc/server/gamec/g_world.c @@ -602,8 +602,8 @@ void() DumpStats = s = strcat(s, GetMapname(), ":", ftos(rint(time))); - if(cvar("sv_logscores_console")) - localcmd(strcat("echo \"", s, "\"\n")); + if(cvar("sv_logscores_console") || cvar("sv_logspam_console")) + ServerConsoleEcho(s, FALSE); if(cvar("sv_logscores_file")) { file = fopen(cvar_string("sv_logscores_filename"), FILE_APPEND); @@ -622,14 +622,16 @@ void() DumpStats = if(cvar("sv_logscores_file")) fputs(file, strcat(s, other.netname, "\n")); - if(cvar("sv_logscores_console")) + if(cvar("sv_logspam_console")) + ServerConsoleEcho(strcat(s, ftos(other.playerid), ":", other.netname), TRUE); + else if(cvar("sv_logscores_console")) ServerConsoleEcho(strcat(s, other.netname), TRUE); } other = other.chain; } - if(cvar("sv_logscores_console")) - localcmd("echo :end\n"); + if(cvar("sv_logscores_console") || cvar("sv_logspam_console")) + ServerConsoleEcho(":end", FALSE); if(cvar("sv_logscores_file")) { fputs(file, ":end\n"); @@ -646,9 +648,6 @@ void() NextLevel = { gameover = TRUE; - if(cvar("sv_logspam_console")) - ServerConsoleEcho(":gameover", FALSE); - intermission_running = 1; // enforce a wait time before allowing changelevel @@ -664,6 +663,9 @@ void() NextLevel = DumpStats(); + if(cvar("sv_logspam_console")) + ServerConsoleEcho(":gameover", FALSE); + other = findchainflags(flags, FL_CLIENT); while (other != world) { -- 2.39.2