forked from teamnwah/openmw-tes3coop
Fixes #1144: Don't refreshCurrentAnims when adding already dead actors
This commit is contained in:
parent
64a30ad182
commit
fc7e79027a
1 changed files with 2 additions and 1 deletions
|
@ -489,12 +489,13 @@ CharacterController::CharacterController(const MWWorld::Ptr &ptr, MWRender::Anim
|
||||||
mIdleState = CharState_Idle;
|
mIdleState = CharState_Idle;
|
||||||
}
|
}
|
||||||
|
|
||||||
refreshCurrentAnims(mIdleState, mMovementState, true);
|
|
||||||
|
|
||||||
if(mDeathState != CharState_None)
|
if(mDeathState != CharState_None)
|
||||||
{
|
{
|
||||||
playRandomDeath(1.0f);
|
playRandomDeath(1.0f);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
refreshCurrentAnims(mIdleState, mMovementState, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
CharacterController::~CharacterController()
|
CharacterController::~CharacterController()
|
||||||
|
|
Loading…
Reference in a new issue