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:
parent
761f13d3ce
commit
688f359a33
2 changed files with 1 additions and 4 deletions
|
@ -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,
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue