*Fix a typo that makes target stop automatically when it is hit by attacker.
--HG-- branch : trunk
This commit is contained in:
@@ -85,10 +85,10 @@ TargetedMovementGenerator<T>::_setTargetLocation(T &owner)
|
|||||||
|
|
||||||
if(stop)
|
if(stop)
|
||||||
{
|
{
|
||||||
i_target->GetPosition(x, y, z);
|
owner.GetPosition(x, y, z);
|
||||||
i_destinationHolder.SetDestination(traveller, x, y, z);
|
i_destinationHolder.SetDestination(traveller, x, y, z);
|
||||||
i_destinationHolder.StartTravel(traveller, false);
|
i_destinationHolder.StartTravel(traveller, false);
|
||||||
i_target->StopMoving();
|
owner.StopMoving();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user