]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix an issue with the multijump code that caused infinite multi-jumps not to work...
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 14 Apr 2011 11:42:51 +0000 (14:42 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 14 Apr 2011 11:42:51 +0000 (14:42 +0300)
qcsrc/server/cl_physics.qc

index a2773fedfd5a00ad6b7dfe4cf605aeecd88fd444..9662e0ae61035dbe402bfec093c71f0753a99644 100644 (file)
@@ -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