mirror of
https://github.com/unknownworlds/NS.git
synced 2024-11-29 15:51:57 +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,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;
|
||||
|
|
Loading…
Reference in a new issue