forked from mirror/openmw-tes3mp
Fix broken AI movement on Z axis
This commit is contained in:
parent
cb6f1d3a52
commit
4f9ebd148c
1 changed files with 2 additions and 0 deletions
|
@ -470,6 +470,8 @@ namespace MWMechanics
|
||||||
|
|
||||||
if(preferShortcut)
|
if(preferShortcut)
|
||||||
{
|
{
|
||||||
|
if (canMoveByZ)
|
||||||
|
mMovement.mRotation[0] = getXAngleToDir(vDirToTarget, distToTarget);
|
||||||
mMovement.mRotation[2] = getZAngleToDir(vDirToTarget, distToTarget);
|
mMovement.mRotation[2] = getZAngleToDir(vDirToTarget, distToTarget);
|
||||||
mForceNoShortcut = false;
|
mForceNoShortcut = false;
|
||||||
mShortcutFailPos.pos[0] = mShortcutFailPos.pos[1] = mShortcutFailPos.pos[2] = 0;
|
mShortcutFailPos.pos[0] = mShortcutFailPos.pos[1] = mShortcutFailPos.pos[2] = 0;
|
||||||
|
|
Loading…
Reference in a new issue