From: Mario Date: Sat, 22 Oct 2016 02:01:39 +0000 (+1000) Subject: Fix compile X-Git-Tag: xonotic-v0.8.2~479 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=59dc17daa3fa802182911d0bb63ca385e8bdbf1c;p=xonotic%2Fxonotic-data.pk3dir.git Fix compile --- diff --git a/qcsrc/common/mutators/mutator/walljump/walljump.qc b/qcsrc/common/mutators/mutator/walljump/walljump.qc index e12755ca7..96b81a561 100644 --- a/qcsrc/common/mutators/mutator/walljump/walljump.qc +++ b/qcsrc/common/mutators/mutator/walljump/walljump.qc @@ -46,7 +46,6 @@ MUTATOR_HOOKFUNCTION(walljump, PlayerJump) if(plane_normal != '0 0 0') { - STAT(LASTWJ, player) = time; float wj_force = PHYS_WALLJUMP_FORCE(player); float wj_xy_factor = PHYS_WALLJUMP_VELOCITY_XY_FACTOR(player); float wj_z_factor = PHYS_WALLJUMP_VELOCITY_Z_FACTOR(player); @@ -58,6 +57,7 @@ MUTATOR_HOOKFUNCTION(walljump, PlayerJump) if(PHYS_INPUT_BUTTON_CROUCH(player)) player.velocity_z *= -1; #ifdef SVQC + STAT(LASTWJ, player) = time; player.oldvelocity = player.velocity; Send_Effect(EFFECT_SMOKE_RING, trace_endpos, plane_normal, 5); PlayerSound(player, playersound_jump, CH_PLAYER, VOL_BASE, VOICETYPE_PLAYERSOUND);