From: Rudolf Polzer Date: Tue, 29 Jan 2013 09:47:30 +0000 (+0100) Subject: fix typos X-Git-Tag: xonotic-v0.7.0~108^2~2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=7845ce02edfecdc6652e777409334d78fa96e358;p=xonotic%2Fxonotic-data.pk3dir.git fix typos --- diff --git a/qcsrc/server/cl_client.qc b/qcsrc/server/cl_client.qc index c15f82dec..3a54b6b32 100644 --- a/qcsrc/server/cl_client.qc +++ b/qcsrc/server/cl_client.qc @@ -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; diff --git a/qcsrc/server/scores.qh b/qcsrc/server/scores.qh index 60f4d24f6..5960b9f42 100644 --- a/qcsrc/server/scores.qh +++ b/qcsrc/server/scores.qh @@ -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.