1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-20 08:53:52 +00:00

discard creatures speed and negative fatique changes

This commit is contained in:
mrcheko 2014-02-03 23:09:26 +02:00
parent 761f13d3ce
commit 688f359a33
2 changed files with 1 additions and 4 deletions

View file

@ -301,7 +301,7 @@ void CharacterController::refreshCurrentAnims(CharacterState idle, CharacterStat
if(!mCurrentMovement.empty())
{
float vel, speedmult = 1.0f;
if(mPtr.getClass().isNpc() && mMovementSpeed > 0.0f && (vel=mAnimation->getVelocity(mCurrentMovement)) > 1.0f)
if(mMovementSpeed > 0.0f && (vel=mAnimation->getVelocity(mCurrentMovement)) > 1.0f)
speedmult = mMovementSpeed / vel;
mAnimation->play(mCurrentMovement, Priority_Movement, movegroup, false,

View file

@ -209,10 +209,7 @@ namespace MWMechanics
mDynamic[index] = value;
if (index == 2 && value.getCurrent() < 0)
{
setKnockedDown(true);
mDynamic[2].setCurrent(0);
}
if (index==0 && mDynamic[index].getCurrent()<1)
{