r5646 - trunk/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Fri Jan 23 09:17:16 EST 2009


Author: div0
Date: 2009-01-23 09:17:15 -0500 (Fri, 23 Jan 2009)
New Revision: 5646

Modified:
   trunk/data/qcsrc/server/scores.qc
Log:
prevent score adding whne in intermission


Modified: trunk/data/qcsrc/server/scores.qc
===================================================================
--- trunk/data/qcsrc/server/scores.qc	2009-01-23 13:32:08 UTC (rev 5645)
+++ trunk/data/qcsrc/server/scores.qc	2009-01-23 14:17:15 UTC (rev 5646)
@@ -88,6 +88,10 @@
 float TeamScore_AddToTeam(float t, float scorefield, float score)
 {
 	entity s;
+
+	if(gameover)
+		return;
+
 	if(!scores_initialized) return 0; // FIXME remove this when everything uses this system
 	if(t <= 0 || t >= 16)
 		error("Adding score to invalid team!");
@@ -284,6 +288,10 @@
 float PlayerScore_Add(entity player, float scorefield, float score)
 {
 	entity s;
+
+	if(gameover)
+		return;
+
 	if(!scores_initialized) return 0; // FIXME remove this when everything uses this system
 	s = player.scorekeeper;
 	if(!s)




More information about the nexuiz-commits mailing list