more cleanup
This commit is contained in:
1 parent
c0165ec7f8
commit
0532afed90
5 files changed
+81
-81
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user