mirror of
https://github.com/ENSL/NS.git
synced 2024-11-22 04:31:12 +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 projectedSpeed = DotProduct(pmove->velocity, pmove->forward);
|
||||
|
||||
// tankefugl: 0000522 reverse lerk flight
|
||||
if (projectedSpeed < 0)
|
||||
speed *= -1;
|
||||
// :tankefugl
|
||||
vec3_t forwardVelocity;
|
||||
VectorScale(pmove->forward, speed, forwardVelocity);
|
||||
|
||||
|
|
Loading…
Reference in a new issue