From 544f1f5b096c9e51f50ec17ea3d390a6b8f6dbbe Mon Sep 17 00:00:00 2001 From: Mircea Kitsune Date: Thu, 14 Apr 2011 14:42:51 +0300 Subject: [PATCH] Fix an issue with the multijump code that caused infinite multi-jumps not to work (setting g_multijump to -1). --- qcsrc/server/cl_physics.qc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/qcsrc/server/cl_physics.qc b/qcsrc/server/cl_physics.qc index a2773fedf..9662e0ae6 100644 --- a/qcsrc/server/cl_physics.qc +++ b/qcsrc/server/cl_physics.qc @@ -61,7 +61,7 @@ void PlayerJump (void) if(!doublejump && self.multijump_ready && self.multijump_count < autocvar_g_multijump && self.velocity_z > autocvar_g_multijump_speed) { // doublejump = FALSE; // checked above in the if - if (autocvar_g_multijump > 0) + if (autocvar_g_multijump) { if (autocvar_g_multijump_add == 0) // in this case we make the z velocity == jumpvelocity { @@ -93,7 +93,8 @@ void PlayerJump (void) self.velocity_y = wishdir_y * curspeed; // keep velocity_z unchanged! } - self.multijump_count += 1; + if (autocvar_g_multijump > 0) + self.multijump_count += 1; } } self.multijump_ready = FALSE; // require releasing and pressing the jump button again for the next jump -- 2.39.2