Changeset 143 for trunk/src/game/Unit.h

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/Unit.h

    r142 r143  
    722722        void SetCanDualWield(bool value) { m_canDualWield = value; } 
    723723        bool canReachWithAttack(Unit *pVictim) const; 
     724        float GetCombatReach() const { return m_floatValues[UNIT_FIELD_COMBATREACH]; } 
    724725        bool IsWithinCombatDist(Unit *obj, float dist2compare) const; 
    725726        void GetRandomContactPoint( const Unit* target, float &x, float &y, float &z, float distance2dMin, float distance2dMax ) const;