mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-06 18:40:23 +00:00
fabsf -> abs
This commit is contained in:
parent
a0f8bbc621
commit
452f7a470e
@ -2424,7 +2424,7 @@ namespace MWMechanics
|
||||
const float epsilon = 0.001f;
|
||||
float targetMovementAngle = std::atan2(-movement.x(), movement.y());
|
||||
float diff = targetMovementAngle - animMovementAngle;
|
||||
if (std::fabsf(diff) > epsilon)
|
||||
if (std::abs(diff) > epsilon)
|
||||
{
|
||||
moved = osg::Quat(diff, osg::Vec3f(0, 0, 1)) * moved;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user