From: Mario Date: Mon, 24 Jun 2019 06:41:35 +0000 (+1000) Subject: If no client state is available, default the forced handicap to 1 (initialized value... X-Git-Tag: xonotic-v0.8.5~1474 X-Git-Url: https://de.git.xonotic.org/?a=commitdiff_plain;ds=sidebyside;h=8b3f829aad8b02f2c260e53fab918f5f226a049e;p=xonotic%2Fxonotic-data.pk3dir.git If no client state is available, default the forced handicap to 1 (initialized value), fixes invincible clones --- diff --git a/qcsrc/server/handicap.qc b/qcsrc/server/handicap.qc index d0dfc4dac..ccb585f01 100644 --- a/qcsrc/server/handicap.qc +++ b/qcsrc/server/handicap.qc @@ -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)