Skip to content

Commit

Permalink
[9399] Simplify config options loading code.
Browse files Browse the repository at this point in the history
  • Loading branch information
VladimirMangos committed Feb 16, 2010
1 parent bc26ed8 commit af3761b
Show file tree
Hide file tree
Showing 4 changed files with 422 additions and 501 deletions.
2 changes: 1 addition & 1 deletion src/game/Creature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1645,7 +1645,7 @@ bool Creature::IsOutOfThreatArea(Unit* pVictim) const
return false;

float AttackDist = GetAttackDistance(pVictim);
uint32 ThreatRadius = sWorld.getConfig(CONFIG_UINT32_THREAT_RADIUS);
float ThreatRadius = sWorld.getConfig(CONFIG_FLOAT_THREAT_RADIUS);

//Use AttackDistance in distance check if threat radius is lower. This prevents creature bounce in and out of combat every update tick.
return !pVictim->IsWithinDist3d(CombatStartX, CombatStartY, CombatStartZ,
Expand Down

0 comments on commit af3761b

Please sign in to comment.