From 8b3f829aad8b02f2c260e53fab918f5f226a049e Mon Sep 17 00:00:00 2001 From: Mario Date: Mon, 24 Jun 2019 16:41:35 +1000 Subject: [PATCH] If no client state is available, default the forced handicap to 1 (initialized value), fixes invincible clones --- qcsrc/server/handicap.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/server/handicap.qc b/qcsrc/server/handicap.qc index d0dfc4dac9..ccb585f013 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) -- 2.39.2