From: Lyberta Date: Sat, 16 Sep 2017 02:37:33 +0000 (+0300) Subject: Handicap: Use ClientState. X-Git-Tag: xonotic-v0.8.5~2474^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=refs%2Fmerge-requests%2F485%2Fhead;p=xonotic%2Fxonotic-data.pk3dir.git Handicap: Use ClientState. --- diff --git a/qcsrc/server/handicap.qc b/qcsrc/server/handicap.qc index 26c90c837..d0dfc4dac 100644 --- a/qcsrc/server/handicap.qc +++ b/qcsrc/server/handicap.qc @@ -12,7 +12,7 @@ void Handicap_Initialize(entity player) { - player.m_handicap = 1; + CS(player).m_handicap = 1; } float Handicap_GetVoluntaryHandicap(entity player) @@ -22,7 +22,7 @@ float Handicap_GetVoluntaryHandicap(entity player) float Handicap_GetForcedHandicap(entity player) { - return player.m_handicap; + return CS(player).m_handicap; } void Handicap_SetForcedHandicap(entity player, float value) @@ -31,7 +31,7 @@ void Handicap_SetForcedHandicap(entity player, float value) { error("Handicap_SetForcedHandicap: Invalid handicap value."); } - player.m_handicap = value; + CS(player).m_handicap = value; } float Handicap_GetTotalHandicap(entity player)