X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fmutators%2Fmutator%2Fdodging%2Fdodging.qc;h=7ddfcea2ba770f027f55672766155697be635620;hb=a4bcbda7a1eb2367fae1c2514d474d426803a673;hp=6705664a57e880cf7ccb086fadedf7b26365c764;hpb=d15f83351909e54e4f7e6a0af117c7fa3fbe7eb4;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/mutators/mutator/dodging/dodging.qc b/qcsrc/common/mutators/mutator/dodging/dodging.qc index 6705664a5..7ddfcea2b 100644 --- a/qcsrc/common/mutators/mutator/dodging/dodging.qc +++ b/qcsrc/common/mutators/mutator/dodging/dodging.qc @@ -123,7 +123,7 @@ float PM_dodging_checkpressedkeys(entity this) makevectors(this.angles); - if(!PHYS_DODGING_AIR(this)) + if(!PHYS_DODGING_AIR) if (check_close_to_ground(this, PHYS_DODGING_HEIGHT_THRESHOLD) != 1 && check_close_to_wall(this, PHYS_DODGING_DISTANCE_THRESHOLD) != 1) return true; @@ -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