From 0d63d75bb0faac2895273ace55f9458347e5e47b Mon Sep 17 00:00:00 2001 From: Allofich Date: Sat, 3 Sep 2016 22:40:24 +0900 Subject: [PATCH] Remove no longer used parameter --- apps/openmw/mwmechanics/aicombat.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/openmw/mwmechanics/aicombat.cpp b/apps/openmw/mwmechanics/aicombat.cpp index 0d2499e7a..2926bcb95 100644 --- a/apps/openmw/mwmechanics/aicombat.cpp +++ b/apps/openmw/mwmechanics/aicombat.cpp @@ -23,7 +23,7 @@ namespace { //chooses an attack depending on probability to avoid uniformity - std::string chooseBestAttack(const ESM::Weapon* weapon, MWMechanics::Movement &movement); + std::string chooseBestAttack(const ESM::Weapon* weapon); osg::Vec3f AimDirToMovingTarget(const MWWorld::Ptr& actor, const MWWorld::Ptr& target, const osg::Vec3f& vLastTargetPos, float duration, int weapType, float strength); @@ -630,7 +630,7 @@ namespace MWMechanics characterController.setAttackingOrSpell(true); if (!distantCombat) - characterController.setAIAttackType(chooseBestAttack(weapon, mMovement)); + characterController.setAIAttackType(chooseBestAttack(weapon)); mStrength = Misc::Rng::rollClosedProbability(); @@ -678,7 +678,7 @@ namespace MWMechanics namespace { -std::string chooseBestAttack(const ESM::Weapon* weapon, MWMechanics::Movement &movement) +std::string chooseBestAttack(const ESM::Weapon* weapon) { std::string attackType;