Core/Movement: General improvements for confused/fleeing movement

This commit is contained in:
kaelima
2012-11-13 15:44:42 +01:00
parent 68291eed03
commit 94cca94017
4 changed files with 36 additions and 59 deletions

View File

@@ -651,9 +651,9 @@ void MotionMaster::DelayedDelete(_Ty curr)
bool MotionMaster::GetDestination(float &x, float &y, float &z)
{
if (_owner->movespline->Finalized())
return false;
return false;
const G3D::Vector3& dest = _owner->movespline->FinalDestination();
G3D::Vector3 const& dest = _owner->movespline->FinalDestination();
x = dest.x;
y = dest.y;
z = dest.z;