diff options
author | megamage <none@none> | 2008-11-20 20:28:17 -0600 |
---|---|---|
committer | megamage <none@none> | 2008-11-20 20:28:17 -0600 |
commit | 5528b7c512ef7968b11ea93a48364a58b629b18b (patch) | |
tree | 92dde452da86b70d73af90c3acfecf64b4bc04ca /src/game/Unit.cpp | |
parent | 2c95ee4b31962198e3e6803bf56fe604724a2111 (diff) |
*Fix the bug that updatepacket is not sent to players.
*TODO: move creature::update to map::update. This requires that move activeobjectlist to map.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r-- | src/game/Unit.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index c0868ce24f1..9a78c50857f 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -10424,7 +10424,7 @@ void Unit::UpdateReactives( uint32 p_time ) } } -Unit* Unit::SelectNearbyTarget() const +Unit* Unit::SelectNearbyTarget(float dist) const { CellPair p(Trinity::ComputeCellPair(GetPositionX(), GetPositionY())); Cell cell(p); @@ -10434,7 +10434,7 @@ Unit* Unit::SelectNearbyTarget() const std::list<Unit *> targets; { - Trinity::AnyUnfriendlyUnitInObjectRangeCheck u_check(this, this, ATTACK_DISTANCE); + Trinity::AnyUnfriendlyUnitInObjectRangeCheck u_check(this, this, dist); Trinity::UnitListSearcher<Trinity::AnyUnfriendlyUnitInObjectRangeCheck> searcher(targets, u_check); TypeContainerVisitor<Trinity::UnitListSearcher<Trinity::AnyUnfriendlyUnitInObjectRangeCheck>, WorldTypeMapContainer > world_unit_searcher(searcher); |