|
|
@ -155,7 +155,6 @@ namespace MWMechanics
|
|
|
|
if (localAttack && localAttack->pressed != storage.mAttack)
|
|
|
|
if (localAttack && localAttack->pressed != storage.mAttack)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
MechanicsHelper::resetAttack(localAttack);
|
|
|
|
MechanicsHelper::resetAttack(localAttack);
|
|
|
|
localAttack->type = mwmp::Attack::MELEE;
|
|
|
|
|
|
|
|
localAttack->pressed = storage.mAttack;
|
|
|
|
localAttack->pressed = storage.mAttack;
|
|
|
|
localAttack->shouldSend = true;
|
|
|
|
localAttack->shouldSend = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -227,7 +226,6 @@ namespace MWMechanics
|
|
|
|
if (localAttack && localAttack->pressed != false)
|
|
|
|
if (localAttack && localAttack->pressed != false)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
MechanicsHelper::resetAttack(localAttack);
|
|
|
|
MechanicsHelper::resetAttack(localAttack);
|
|
|
|
localAttack->type = mwmp::Attack::MELEE;
|
|
|
|
|
|
|
|
localAttack->pressed = false;
|
|
|
|
localAttack->pressed = false;
|
|
|
|
localAttack->shouldSend = true;
|
|
|
|
localAttack->shouldSend = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -580,7 +578,7 @@ namespace MWMechanics
|
|
|
|
if (localAttack && localAttack->pressed != true)
|
|
|
|
if (localAttack && localAttack->pressed != true)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
MechanicsHelper::resetAttack(localAttack);
|
|
|
|
MechanicsHelper::resetAttack(localAttack);
|
|
|
|
localAttack->type = mwmp::Attack::MELEE;
|
|
|
|
localAttack->type = distantCombat ? mwmp::Attack::MELEE : mwmp::Attack::RANGED;
|
|
|
|
localAttack->pressed = true;
|
|
|
|
localAttack->pressed = true;
|
|
|
|
localAttack->shouldSend = true;
|
|
|
|
localAttack->shouldSend = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|