X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fserver%2Fcl_physics.qc;h=f0617740e654210a45af5754dc526b5aaef48625;hp=a2773fedfd5a00ad6b7dfe4cf605aeecd88fd444;hb=fbe0ecf4de0561cb63ad83f29702ac71d681dd76;hpb=a2aac26e6d660e5e70e65d7639a669bced3de9e2 diff --git a/qcsrc/server/cl_physics.qc b/qcsrc/server/cl_physics.qc index a2773fedfd..f0617740e6 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 @@ -891,6 +892,7 @@ void SV_PlayerPhysics() } if(self.flags & FL_ONGROUND) + if(self.classname == "player") // no fall sounds for observers thank you very much if(self.wasFlying) { self.wasFlying = 0;