1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-04-01 21:06:43 +00:00

[Client] Add missing comment related to spellcast animation

This commit is contained in:
David Cernat 2019-11-29 14:02:52 +02:00
parent b3747839c0
commit 0dae3074a6

View file

@ -1121,11 +1121,21 @@ void CharacterController::handleTextKey(const std::string &groupname, const std:
// the same animation for all range types, so there are 3 "release" keys on the same time, one for each range type.
&& evt.compare(off, len, mAttackType + " release") == 0)
{
/*
Start of tes3mp change (major)
Make the completion of the spellcast animation actually cast spells only for the
local player and local actors, relying on Cast packets to cause spells to be cast
for dedicated players and actors
*/
if (mPtr == getPlayer() || mwmp::Main::get().getCellController()->isLocalActor(mPtr))
{
MWBase::Environment::get().getWorld()->castSpell(mPtr, mCastingManualSpell);
mCastingManualSpell = false;
}
/*
End of tes3mp change (major)
*/
}
else if (groupname == "shield" && evt.compare(off, len, "block hit") == 0)