Mantis 0000522:

Forgot a couple of lines for backward lerk flight. Updated.

git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@29 67975925-1194-0748-b3d5-c16f83f1a3a1
This commit is contained in:
tankefugl 2005-04-04 00:37:31 +00:00
parent 09e8cfc6f5
commit 6eca2b6cc9

View file

@ -5104,7 +5104,11 @@ void PM_Jump (void)
float speed = Length(pmove->velocity);
float projectedSpeed = DotProduct(pmove->velocity, pmove->forward);
vec3_t forwardVelocity;
// tankefugl: 0000522 reverse lerk flight
if (projectedSpeed < 0)
speed *= -1;
// :tankefugl
vec3_t forwardVelocity;
VectorScale(pmove->forward, speed, forwardVelocity);
vec3_t glideVelocity;