more cleanup

This commit is contained in:
thomas33 committed 2012-03-13 14:53:36 +01:00
1 parent c0165ec7f8
commit 0532afed90
5 files changed
+81 -81

No files matched your search

+2 -2
View File
@@ -17421,14 +17421,14 @@ void Unit::SetFacingTo(float ori)
init.Launch();
}
void Unit::SetFacingToObject(WorldObject* pObject)
void Unit::SetFacingToObject(WorldObject* object)
{
// never face when already moving
if (!IsStopped())
return;
// TODO: figure out under what conditions creature will move towards object instead of facing it where it currently is.
SetFacingTo(GetAngle(pObject));
SetFacingTo(GetAngle(object));
}
bool Unit::SetWalk(bool enable)