]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
fix typos
authorRudolf Polzer <divverent@xonotic.org>
Tue, 29 Jan 2013 09:47:30 +0000 (10:47 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Tue, 29 Jan 2013 09:47:30 +0000 (10:47 +0100)
qcsrc/server/cl_client.qc
qcsrc/server/scores.qh

index c15f82dec93f093cce1ecf3dabb88f0da369e931..3a54b6b323a32c2073f4f5624219549500f2e39c 100644 (file)
@@ -538,7 +538,7 @@ void PutObserverInServer (void)
        }
        else if((g_race && g_race_qualifying) || g_cts)
        {
-               if(PlayerScore_Add(e, SP_RACE_FASTEST, 0))
+               if(PlayerScore_Add(self, SP_RACE_FASTEST, 0))
                        self.frags = FRAGS_LMS_LOSER;
                else
                        self.frags = FRAGS_SPECTATOR;
index 60f4d24f6bdeaf6271a223b3919d8bd1e6bed767..5960b9f427fc3a459550dd0585fd8eacee686134 100644 (file)
@@ -25,8 +25,9 @@ float PlayerScore_Add(entity player, float scorefield, float score);
  * Initialize the score of this player if needed.
  * Does nothing in teamplay.
  * Use that when a spectator becomes a player.
+ * Returns whether clearing has been performed
  */
-void PlayerScore_Clear(entity player);
+float PlayerScore_Clear(entity player);
 
 /**
  * Adds a score to the player's team's scores.