From 73bf81edb4cb4447f4b8be7a1ce43518ac623625 Mon Sep 17 00:00:00 2001 From: Lyberta Date: Sat, 16 Sep 2017 05:37:33 +0300 Subject: [PATCH] Handicap: Use ClientState. --- qcsrc/server/handicap.qc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) -- 2.39.2