aboutsummaryrefslogtreecommitdiff
path: root/src/game/World.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2008-12-05 18:39:31 -0600
committermegamage <none@none>2008-12-05 18:39:31 -0600
commit3a1293ef183425fe555354c5445b43ff246d33fa (patch)
treef0ae72dfc6bed7e828a36bfee8832e60c50096b8 /src/game/World.cpp
parentd36672cd7e4ae3d328f30c020c5421668ad4cb5e (diff)
*Update melee range calculation. By QAston.
--HG-- branch : trunk
Diffstat (limited to 'src/game/World.cpp')
-rw-r--r--src/game/World.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/World.cpp b/src/game/World.cpp
index a7cff4cb686..4cde9683cc3 100644
--- a/src/game/World.cpp
+++ b/src/game/World.cpp
@@ -477,11 +477,11 @@ void World::LoadConfigSettings(bool reload)
sLog.outError("TargetPosRecalculateRange (%f) must be >= %f. Using %f instead.",rate_values[RATE_TARGET_POS_RECALCULATION_RANGE],CONTACT_DISTANCE,CONTACT_DISTANCE);
rate_values[RATE_TARGET_POS_RECALCULATION_RANGE] = CONTACT_DISTANCE;
}
- else if(rate_values[RATE_TARGET_POS_RECALCULATION_RANGE] > ATTACK_DISTANCE)
+ else if(rate_values[RATE_TARGET_POS_RECALCULATION_RANGE] > NOMINAL_MELEE_RANGE)
{
sLog.outError("TargetPosRecalculateRange (%f) must be <= %f. Using %f instead.",
- rate_values[RATE_TARGET_POS_RECALCULATION_RANGE],ATTACK_DISTANCE,ATTACK_DISTANCE);
- rate_values[RATE_TARGET_POS_RECALCULATION_RANGE] = ATTACK_DISTANCE;
+ rate_values[RATE_TARGET_POS_RECALCULATION_RANGE],NOMINAL_MELEE_RANGE,NOMINAL_MELEE_RANGE);
+ rate_values[RATE_TARGET_POS_RECALCULATION_RANGE] = NOMINAL_MELEE_RANGE;
}
rate_values[RATE_DURABILITY_LOSS_DAMAGE] = sConfig.GetFloatDefault("DurabilityLossChance.Damage",0.5f);