]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Handicap: Use ClientState. 485/head
authorLyberta <lyberta@lyberta.net>
Sat, 16 Sep 2017 02:37:33 +0000 (05:37 +0300)
committerLyberta <lyberta@lyberta.net>
Sat, 16 Sep 2017 02:37:33 +0000 (05:37 +0300)
qcsrc/server/handicap.qc

index 26c90c83711640c6b1bc976a72e056c10b261589..d0dfc4dac98889f48fcda790d63f1d4796de189c 100644 (file)
@@ -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)