mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-28 22:09:42 +00:00
Reset current attack during force update (bug #4922)
This commit is contained in:
parent
e171d34192
commit
be12d241da
2 changed files with 8 additions and 0 deletions
|
@ -43,6 +43,7 @@
|
|||
Bug #4896: Title screen music doesn't loop
|
||||
Bug #4911: Editor: QOpenGLContext::swapBuffers() warning with Qt5
|
||||
Bug #4916: Specular power (shininess) material parameter is ignored when shaders are used.
|
||||
Bug #4922: Werewolves can not attack if the transformation happens during attack
|
||||
Feature #2229: Improve pathfinding AI
|
||||
Feature #3442: Default values for fallbacks from ini file
|
||||
Feature #3610: Option to invert X axis
|
||||
|
|
|
@ -2554,6 +2554,13 @@ void CharacterController::forceStateUpdate()
|
|||
return;
|
||||
clearAnimQueue();
|
||||
|
||||
// Make sure we canceled the current attack or spellcasting,
|
||||
// because we disabled attack animations anyway.
|
||||
mCastingManualSpell = false;
|
||||
mAttackingOrSpell = false;
|
||||
if (mUpperBodyState != UpperCharState_Nothing)
|
||||
mUpperBodyState = UpperCharState_WeapEquiped;
|
||||
|
||||
refreshCurrentAnims(mIdleState, mMovementState, mJumpState, true);
|
||||
|
||||
if(mDeathState != CharState_None)
|
||||
|
|
Loading…
Reference in a new issue