aboutsummaryrefslogtreecommitdiff
path: root/src/game/Creature.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/Creature.cpp')
-rw-r--r--src/game/Creature.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp
index a9eb6041488..ba16888141b 100644
--- a/src/game/Creature.cpp
+++ b/src/game/Creature.cpp
@@ -153,6 +153,9 @@ m_creatureInfo(NULL), m_reactState(REACT_AGGRESSIVE), m_formation(NULL), m_summo
m_GlobalCooldown = 0;
DisableReputationGain = false;
//m_unit_movement_flags = MONSTER_MOVE_WALK;
+
+ m_SightDistance = sWorld.getConfig(CONFIG_SIGHT_MONSTER);
+ m_CombatDistance = MELEE_RANGE;
}
Creature::~Creature()
@@ -1697,11 +1700,6 @@ bool Creature::canSeeOrDetect(Unit const* u, bool detect, bool inVisibleList, bo
return true;
}
-bool Creature::IsWithinSightDist(Unit const* u) const
-{
- return IsWithinDistInMap(u, sWorld.getConfig(CONFIG_SIGHT_MONSTER));
-}
-
bool Creature::canStartAttack(Unit const* who, bool force) const
{
if(isCivilian())