*Merge.
--HG-- branch : trunk
This commit is contained in:
commit
d69198732e
373 files changed
+2607
-2215
No files matched your search
@@ -59,7 +59,7 @@ TargetedMovementGenerator<T>::_setTargetLocation(T &owner)
|
||||
float x, y, z;
|
||||
if(!i_offset)
|
||||
{
|
||||
// to nearest random contact position
|
||||
// to nearest random contact position
|
||||
i_target->GetRandomContactPoint( &owner, x, y, z, 0, MELEE_RANGE - 0.5f );
|
||||
}
|
||||
else
|
||||
@@ -101,7 +101,7 @@ TargetedMovementGenerator<T>::Initialize(T &owner)
|
||||
|
||||
if (owner.GetTypeId() == TYPEID_UNIT && ((Creature*)&owner)->canFly())
|
||||
owner.AddUnitMovementFlag(MOVEMENTFLAG_FLYING2);
|
||||
|
||||
|
||||
_setTargetLocation(owner);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user