1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-21 08:09:41 +00:00

Minor fix in actors.cpp

This commit is contained in:
Petr Mikheev 2022-04-03 20:07:47 +02:00
parent eca64b48e8
commit 5ed22c4c7a

View file

@ -1556,7 +1556,7 @@ namespace MWMechanics
mov.mRotation[2] = luaControls->mYawChange;
mov.mSpeedFactor = osg::Vec2(luaControls->mMovement, luaControls->mSideMovement).length();
stats.setMovementFlag(MWMechanics::CreatureStats::Flag_Run, luaControls->mRun);
stats.setAttackingOrSpell(luaControls->mUse == 1);
stats.setAttackingOrSpell((luaControls->mUse & 1) == 1);
luaControls->mChanged = false;
}
luaControls->mSideMovement = movement.x();