mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-28 18:39:41 +00:00
[Client] Bring drawState fallback for actors up-to-date w/ attack types
This commit is contained in:
parent
9d2cf6629b
commit
3f6ca6f22b
1 changed files with 2 additions and 2 deletions
|
@ -304,12 +304,12 @@ void Cell::readAttack(ActorList& actorList)
|
||||||
|
|
||||||
// Set the correct drawState here if we've somehow we've missed a previous
|
// Set the correct drawState here if we've somehow we've missed a previous
|
||||||
// AnimFlags packet
|
// AnimFlags packet
|
||||||
if (actor->attack.type == mwmp::Attack::MELEE && actor->drawState != 1)
|
if (actor->drawState != 1 && (actor->attack.type == mwmp::Attack::MELEE || actor->attack.type == mwmp::Attack::RANGED))
|
||||||
{
|
{
|
||||||
actor->drawState = 1;
|
actor->drawState = 1;
|
||||||
actor->setAnimFlags();
|
actor->setAnimFlags();
|
||||||
}
|
}
|
||||||
else if (actor->attack.type == mwmp::Attack::MAGIC && actor->drawState != 2)
|
else if (actor->drawState != 2 && (actor->attack.type == mwmp::Attack::MAGIC || actor->attack.type == mwmp::Attack::ITEM_MAGIC))
|
||||||
{
|
{
|
||||||
actor->drawState = 2;
|
actor->drawState = 2;
|
||||||
actor->setAnimFlags();
|
actor->setAnimFlags();
|
||||||
|
|
Loading…
Reference in a new issue