]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Get v_angle when air dodging is enabled
authorMario <mario@smbclan.net>
Sun, 24 Jul 2016 04:42:12 +0000 (14:42 +1000)
committerMario <mario@smbclan.net>
Sun, 24 Jul 2016 04:42:12 +0000 (14:42 +1000)
qcsrc/common/mutators/mutator/dodging/dodging.qc

index 23ef0cc8dc9a3fb2d5abd1a10e41ea8282db4674..7ddfcea2ba770f027f55672766155697be635620 100644 (file)
@@ -189,7 +189,10 @@ void PM_dodging(entity this)
        }
 
        // make sure v_up, v_right and v_forward are sane
-       makevectors(this.angles);
+       if(PHYS_DODGING_AIR)
+               makevectors(this.v_angle);
+       else
+               makevectors(this.angles);
 
        // if we have e.g. 0.5 sec ramptime and a frametime of 0.25, then the ramp code
        // will be called ramp_time/frametime times = 2 times. so, we need to