forked from mirror/openmw-tes3mp
[Client] Fix backwards logic when setting type for AI attacks
This commit is contained in:
parent
d9dd7073cf
commit
bfd7c83c4d
1 changed files with 1 additions and 1 deletions
|
@ -578,7 +578,7 @@ namespace MWMechanics
|
||||||
if (localAttack && localAttack->pressed != true)
|
if (localAttack && localAttack->pressed != true)
|
||||||
{
|
{
|
||||||
MechanicsHelper::resetAttack(localAttack);
|
MechanicsHelper::resetAttack(localAttack);
|
||||||
localAttack->type = distantCombat ? mwmp::Attack::MELEE : mwmp::Attack::RANGED;
|
localAttack->type = distantCombat ? mwmp::Attack::RANGED : mwmp::Attack::MELEE;
|
||||||
localAttack->pressed = true;
|
localAttack->pressed = true;
|
||||||
localAttack->shouldSend = true;
|
localAttack->shouldSend = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue