From: Mircea Kitsune Date: Thu, 14 Apr 2011 11:42:51 +0000 (+0300) Subject: Fix an issue with the multijump code that caused infinite multi-jumps not to work... X-Git-Tag: xonotic-v0.5.0~109^2~24^2~2^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=544f1f5b096c9e51f50ec17ea3d390a6b8f6dbbe;p=xonotic%2Fxonotic-data.pk3dir.git Fix an issue with the multijump code that caused infinite multi-jumps not to work (setting g_multijump to -1). --- 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