1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-19 17:09:40 +00:00

Compare new velocity to the original velocity.

Using old velocity seems awkward,
probably a copypaste/refactoring bug.
This commit is contained in:
logzero 2016-12-24 12:38:23 +01:00
parent e58de5e410
commit ab1724d3db

View file

@ -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;