Core/Movement: General improvements for confused/fleeing movement

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

No files matched your search

+2 -2
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;