mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-28 07:32:00 -04:00
Fix broken AI movement on Z axis
This commit is contained in:
parent
cb6f1d3a52
commit
4f9ebd148c
@ -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…
x
Reference in New Issue
Block a user