]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix compile
authorMario <mario@smbclan.net>
Sat, 22 Oct 2016 02:01:39 +0000 (12:01 +1000)
committerMario <mario@smbclan.net>
Sat, 22 Oct 2016 02:01:39 +0000 (12:01 +1000)
qcsrc/common/mutators/mutator/walljump/walljump.qc

index e12755ca73c8080a4ec30a849747004397dd62ff..96b81a561544d92f1dedf42bef2cc4a2cd25516e 100644 (file)
@@ -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);