mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 20:53:50 +00:00
Merge branch 'skipanim' into 'master'
Don't move characters if their animation can't move them Closes #5593 See merge request OpenMW/openmw!490
This commit is contained in:
commit
45f4e69a19
1 changed files with 1 additions and 1 deletions
|
@ -2429,7 +2429,7 @@ void CharacterController::update(float duration, bool animationOnly)
|
||||||
moved.y() *= scale;
|
moved.y() *= scale;
|
||||||
|
|
||||||
// Ensure we're moving in generally the right direction...
|
// Ensure we're moving in generally the right direction...
|
||||||
if(speed > 0.f)
|
if (speed > 0.f && moved != osg::Vec3f())
|
||||||
{
|
{
|
||||||
float l = moved.length();
|
float l = moved.length();
|
||||||
if (std::abs(movement.x() - moved.x()) > std::abs(moved.x()) / 2 ||
|
if (std::abs(movement.x() - moved.x()) > std::abs(moved.x()) / 2 ||
|
||||||
|
|
Loading…
Reference in a new issue