mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-21 19:41:35 +00:00
fabsf -> abs
This commit is contained in:
parent
a0f8bbc621
commit
452f7a470e
1 changed files with 1 additions and 1 deletions
|
@ -2424,7 +2424,7 @@ namespace MWMechanics
|
||||||
const float epsilon = 0.001f;
|
const float epsilon = 0.001f;
|
||||||
float targetMovementAngle = std::atan2(-movement.x(), movement.y());
|
float targetMovementAngle = std::atan2(-movement.x(), movement.y());
|
||||||
float diff = targetMovementAngle - animMovementAngle;
|
float diff = targetMovementAngle - animMovementAngle;
|
||||||
if (std::fabsf(diff) > epsilon)
|
if (std::abs(diff) > epsilon)
|
||||||
{
|
{
|
||||||
moved = osg::Quat(diff, osg::Vec3f(0, 0, 1)) * moved;
|
moved = osg::Quat(diff, osg::Vec3f(0, 0, 1)) * moved;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue