From 3f6ca6f22b9987bed674cece9be667fe1c23b55e Mon Sep 17 00:00:00 2001 From: David Cernat Date: Tue, 11 Sep 2018 15:12:11 +0300 Subject: [PATCH] [Client] Bring drawState fallback for actors up-to-date w/ attack types --- apps/openmw/mwmp/Cell.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/openmw/mwmp/Cell.cpp b/apps/openmw/mwmp/Cell.cpp index bebd43157..9fdef9915 100644 --- a/apps/openmw/mwmp/Cell.cpp +++ b/apps/openmw/mwmp/Cell.cpp @@ -304,12 +304,12 @@ void Cell::readAttack(ActorList& actorList) // Set the correct drawState here if we've somehow we've missed a previous // 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->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->setAnimFlags();