Show
Ignore:
Timestamp:
11/19/08 13:40:10 (17 years ago)
Author:
yumileroy
Message:

[svn] Check creature combat reach when loading db. This should fix the bug that finding random contact point causes crash.

Original author: megamage
Date: 2008-11-01 16:53:16-05:00

Files:
1 modified

Legend:

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

    r141 r143  
    165165            i_destinationHolder.ResetUpdate(50); 
    166166 
    167         float dist = owner.GetFloatValue(UNIT_FIELD_COMBATREACH) + i_target.getTarget()->GetFloatValue(UNIT_FIELD_COMBATREACH) + sWorld.getRate(RATE_TARGET_POS_RECALCULATION_RANGE); 
     167        float dist = owner.GetCombatReach() + i_target.getTarget()->GetCombatReach() + sWorld.getRate(RATE_TARGET_POS_RECALCULATION_RANGE); 
    168168 
    169169        //More distance let have better performance, less distance let have more sensitive reaction at target move.