r5850 - in trunk/data/qcsrc: common server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Thu Feb 12 02:30:34 EST 2009


Author: div0
Date: 2009-02-12 02:30:34 -0500 (Thu, 12 Feb 2009)
New Revision: 5850

Modified:
   trunk/data/qcsrc/common/constants.qh
   trunk/data/qcsrc/server/cl_client.qc
Log:
hopefully fix score display in LMS


Modified: trunk/data/qcsrc/common/constants.qh
===================================================================
--- trunk/data/qcsrc/common/constants.qh	2009-02-12 07:14:31 UTC (rev 5849)
+++ trunk/data/qcsrc/common/constants.qh	2009-02-12 07:30:34 UTC (rev 5850)
@@ -409,7 +409,9 @@
 
 #define FRAGS_PLAYER 0
 #define FRAGS_SPECTATOR -666
+#define FRAGS_LMS_LOSER -616
 #define FRAGS_PLAYER_NONSOLID -616
+// we can use this frags value for both
 
 //misc. stuff
 #define NEWLINES "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"

Modified: trunk/data/qcsrc/server/cl_client.qc
===================================================================
--- trunk/data/qcsrc/server/cl_client.qc	2009-02-12 07:14:31 UTC (rev 5849)
+++ trunk/data/qcsrc/server/cl_client.qc	2009-02-12 07:30:34 UTC (rev 5850)
@@ -584,7 +584,7 @@
 		if(PlayerScore_Add(self, SP_LMS_RANK, 0) == 666)
 			self.frags = FRAGS_SPECTATOR;
 		else
-			self.frags = FRAGS_SPECTATOR; // this was -667 before, is this okay?
+			self.frags = FRAGS_LMS_LOSER;
 	}
 	else
 		self.frags = FRAGS_SPECTATOR;




More information about the nexuiz-commits mailing list