mirror of
https://github.com/unknownworlds/NS.git
synced 2024-11-30 00:10:59 +00:00
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:
parent
09e8cfc6f5
commit
6eca2b6cc9
1 changed files with 5 additions and 1 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue