Allow player-controlled NPCs to have attack animations again

This commit is contained in:
David Cernat 2016-09-29 16:57:39 +03:00
parent 5efa5aa912
commit 25026a9b95

View File

@ -1312,7 +1312,11 @@ bool CharacterController::updateWeaponState()
mAttackType = "shoot"; mAttackType = "shoot";
else else
{ {
if(mPtr == getPlayer()) // tes3mp needs player-controlled NPCs to not have their attacks
// cancelled here, so a 2nd condition has been added that should
// return true only for them
if(mPtr == getPlayer() || !mPtr.getBase()->canChangeCell)
{ {
if (isWeapon) if (isWeapon)
{ {