r3976 - in trunk: Docs data/qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Tue Jul 29 08:59:31 EDT 2008
Author: div0
Date: 2008-07-29 08:59:30 -0400 (Tue, 29 Jul 2008)
New Revision: 3976
Modified:
trunk/Docs/eventlog.txt
trunk/data/qcsrc/server/g_world.qc
Log:
flag spectators in the scores log
Modified: trunk/Docs/eventlog.txt
===================================================================
--- trunk/Docs/eventlog.txt 2008-07-29 12:49:37 UTC (rev 3975)
+++ trunk/Docs/eventlog.txt 2008-07-29 12:59:30 UTC (rev 3976)
@@ -42,6 +42,7 @@
:scores:<gametype>_<mapname>:<map runtime>
:labels:player:<head1><flags>,<head2><flags>,...
:player:see-labels:<score1>,<score2>,...:<playtime>:<team>:<ID>:<nickname>
+ :player:see-labels:<score1>,<score2>,...:<playtime>:spectator:<ID>:<nickname>
:labels:teamscores:<head1><flags>,<head2><flags>,...
:teamscores:see-labels:<score1>,<score2>,...:<team>
:end
Modified: trunk/data/qcsrc/server/g_world.qc
===================================================================
--- trunk/data/qcsrc/server/g_world.qc 2008-07-29 12:49:37 UTC (rev 3975)
+++ trunk/data/qcsrc/server/g_world.qc 2008-07-29 12:59:30 UTC (rev 3976)
@@ -990,7 +990,10 @@
{
s = strcat(":player:see-labels:", GetPlayerScoreString(other), ":");
s = strcat(s, ftos(rint(time - other.jointime)), ":");
- s = strcat(s, ftos(other.team), ":");
+ if(other.classname == "player")
+ s = strcat(s, ftos(other.team), ":");
+ else
+ s = strcat(s, "spectator:");
if(to_console)
ServerConsoleEcho(strcat(s, other.netname), TRUE);
More information about the nexuiz-commits
mailing list