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