1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-31 00:45:36 +00:00

Merge pull request #972 from terrorfisch/minor-bugfix

Make NPCs use both hands in weaponless combat.
This commit is contained in:
scrawl 2016-06-20 13:58:50 +02:00 committed by GitHub
commit 97de484f81

View file

@ -688,7 +688,7 @@ ESM::Weapon::AttackType chooseBestAttack(const ESM::Weapon* weapon, MWMechanics:
float roll = Misc::Rng::rollClosedProbability();
if(roll <= 0.333f) //side punch
{
movement.mPosition[0] = Misc::Rng::rollClosedProbability() ? 1.0f : -1.0f;
movement.mPosition[0] = (Misc::Rng::rollClosedProbability() < 0.5f) ? 1.0f : -1.0f;
movement.mPosition[1] = 0;
attackType = ESM::Weapon::AT_Slash;
}