Changeset 266 for trunk/src/game/Unit.cpp
- Timestamp:
- 11/21/08 08:48:50 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/Unit.cpp
r265 r266 10425 10425 } 10426 10426 10427 Unit* Unit::SelectNearbyTarget( ) const10427 Unit* Unit::SelectNearbyTarget(float dist) const 10428 10428 { 10429 10429 CellPair p(Trinity::ComputeCellPair(GetPositionX(), GetPositionY())); … … 10435 10435 10436 10436 { 10437 Trinity::AnyUnfriendlyUnitInObjectRangeCheck u_check(this, this, ATTACK_DISTANCE);10437 Trinity::AnyUnfriendlyUnitInObjectRangeCheck u_check(this, this, dist); 10438 10438 Trinity::UnitListSearcher<Trinity::AnyUnfriendlyUnitInObjectRangeCheck> searcher(targets, u_check); 10439 10439