mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 18:35:20 +00:00
Don't scale the movement vector up
This commit is contained in:
parent
bdda7278c4
commit
04524fbf92
@ -311,14 +311,10 @@ namespace MWClass
|
|||||||
|
|
||||||
Ogre::Vector3 Npc::getMovementVector (const MWWorld::Ptr& ptr) const
|
Ogre::Vector3 Npc::getMovementVector (const MWWorld::Ptr& ptr) const
|
||||||
{
|
{
|
||||||
Ogre::Vector3 vector (0, 0, 0);
|
Ogre::Vector3 vector;
|
||||||
|
vector.x = getMovementSettings(ptr).mLeftRight;
|
||||||
vector.x = getMovementSettings (ptr).mLeftRight * 127;
|
vector.y = getMovementSettings(ptr).mForwardBackward;
|
||||||
vector.y = getMovementSettings (ptr).mForwardBackward * 127;
|
vector.z = getMovementSettings(ptr).mUpDown;
|
||||||
vector.z = getMovementSettings(ptr).mUpDown * 127;
|
|
||||||
|
|
||||||
//if (getStance (ptr, Run, false))
|
|
||||||
// vector *= 2;
|
|
||||||
|
|
||||||
return vector;
|
return vector;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user