]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
If no client state is available, default the forced handicap to 1 (initialized value...
authorMario <mario@smbclan.net>
Mon, 24 Jun 2019 06:41:35 +0000 (16:41 +1000)
committerMario <mario@smbclan.net>
Mon, 24 Jun 2019 06:41:35 +0000 (16:41 +1000)
qcsrc/server/handicap.qc

index d0dfc4dac98889f48fcda790d63f1d4796de189c..ccb585f013db803975bb0bc12052c375db1c0d3c 100644 (file)
@@ -22,7 +22,7 @@ float Handicap_GetVoluntaryHandicap(entity player)
 
 float Handicap_GetForcedHandicap(entity player)
 {
-       return CS(player).m_handicap;
+       return (CS(player)) ? CS(player).m_handicap : 1;
 }
 
 void Handicap_SetForcedHandicap(entity player, float value)