mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-13 17:09:40 +00:00
Don't scale the movement vector up
This commit is contained in:
parent
bdda7278c4
commit
04524fbf92
1 changed files with 4 additions and 8 deletions
|
@ -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…
Reference in a new issue