mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-02 16:20:23 +00:00
don't initialise rangeAttackOfTarget
This commit is contained in:
parent
983c33c4c8
commit
69a56eaea3
@ -491,7 +491,6 @@ namespace MWMechanics
|
|||||||
void AiCombatStorage::startCombatMove(bool isDistantCombat, float distToTarget, float rangeAttack, const MWWorld::Ptr& actor, const MWWorld::Ptr& target)
|
void AiCombatStorage::startCombatMove(bool isDistantCombat, float distToTarget, float rangeAttack, const MWWorld::Ptr& actor, const MWWorld::Ptr& target)
|
||||||
{
|
{
|
||||||
// get the range of the target's weapon
|
// get the range of the target's weapon
|
||||||
float rangeAttackOfTarget = 0.f;
|
|
||||||
MWWorld::Ptr targetWeapon = MWWorld::Ptr();
|
MWWorld::Ptr targetWeapon = MWWorld::Ptr();
|
||||||
const MWWorld::Class& targetClass = target.getClass();
|
const MWWorld::Class& targetClass = target.getClass();
|
||||||
|
|
||||||
@ -505,7 +504,7 @@ namespace MWMechanics
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool isRangedCombat = false;
|
bool isRangedCombat = false;
|
||||||
rangeAttackOfTarget = ActionWeapon(targetWeapon).getCombatRange(isRangedCombat);
|
float rangeAttackOfTarget = ActionWeapon(targetWeapon).getCombatRange(isRangedCombat);
|
||||||
|
|
||||||
if (mMovement.mPosition[0] || mMovement.mPosition[1])
|
if (mMovement.mPosition[0] || mMovement.mPosition[1])
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user