Show
Ignore:
Timestamp:
11/21/08 08:48:50 (17 years ago)
Author:
yumileroy
Message:

*Fix the bug that updatepacket is not sent to players.
*TODO: move creature::update to map::update. This requires that move activeobjectlist to map.

Original author: megamage
Date: 2008-11-20 20:28:17-06:00

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/game/Unit.cpp

    r265 r266  
    1042510425} 
    1042610426 
    10427 Unit* Unit::SelectNearbyTarget() const 
     10427Unit* Unit::SelectNearbyTarget(float dist) const 
    1042810428{ 
    1042910429    CellPair p(Trinity::ComputeCellPair(GetPositionX(), GetPositionY())); 
     
    1043510435 
    1043610436    { 
    10437         Trinity::AnyUnfriendlyUnitInObjectRangeCheck u_check(this, this, ATTACK_DISTANCE); 
     10437        Trinity::AnyUnfriendlyUnitInObjectRangeCheck u_check(this, this, dist); 
    1043810438        Trinity::UnitListSearcher<Trinity::AnyUnfriendlyUnitInObjectRangeCheck> searcher(targets, u_check); 
    1043910439