forked from mirror/openmw-tes3mp
Compare new velocity to the original velocity.
Using old velocity seems awkward, probably a copypaste/refactoring bug.
This commit is contained in:
parent
e58de5e410
commit
ab1724d3db
1 changed files with 1 additions and 1 deletions
|
@ -419,7 +419,7 @@ namespace MWPhysics
|
|||
|
||||
if ((newVelocity-velocity).length2() < 0.01)
|
||||
break;
|
||||
if ((velocity * origVelocity) <= 0.f)
|
||||
if ((newVelocity * origVelocity) <= 0.f)
|
||||
break; // ^ dot product
|
||||
|
||||
velocity = newVelocity;
|
||||
|
|
Loading…
Reference in a new issue