mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-21 11:53:51 +00:00
[Client] Stop switching drawstates when receiving ActorAttack packets
Previously, some of the spammier ActorAttack packets were overriding spellcasting animations with weapon attack animations.
This commit is contained in:
parent
ef944aa050
commit
5a46b40e1a
1 changed files with 1 additions and 11 deletions
|
@ -304,15 +304,6 @@ void Cell::readAttack(ActorList& actorList)
|
|||
DedicatedActor *actor = dedicatedActors[mapIndex];
|
||||
actor->attack = baseActor.attack;
|
||||
|
||||
// Set the correct drawState here if we've somehow we've missed a previous
|
||||
// AnimFlags packet
|
||||
if (actor->drawState != MWMechanics::DrawState_::DrawState_Weapon &&
|
||||
(actor->attack.type == mwmp::Attack::MELEE || actor->attack.type == mwmp::Attack::RANGED))
|
||||
{
|
||||
actor->drawState = MWMechanics::DrawState_::DrawState_Weapon;
|
||||
actor->setAnimFlags();
|
||||
}
|
||||
|
||||
MechanicsHelper::processAttack(actor->attack, actor->getPtr());
|
||||
}
|
||||
}
|
||||
|
@ -333,8 +324,7 @@ void Cell::readCast(ActorList& actorList)
|
|||
|
||||
// Set the correct drawState here if we've somehow we've missed a previous
|
||||
// AnimFlags packet
|
||||
if (actor->drawState != MWMechanics::DrawState_::DrawState_Spell &&
|
||||
(actor->attack.type == mwmp::Cast::REGULAR || actor->cast.type == mwmp::Cast::ITEM))
|
||||
if (actor->drawState != MWMechanics::DrawState_::DrawState_Spell)
|
||||
{
|
||||
actor->drawState = MWMechanics::DrawState_::DrawState_Spell;
|
||||
actor->setAnimFlags();
|
||||
|
|
Loading…
Reference in a new issue