From 69c487abe51ac655b1f9cd4bc7388fb01e30fb0e Mon Sep 17 00:00:00 2001 From: megamage Date: Sat, 29 Aug 2009 17:14:47 -0500 Subject: *Handle creature rotation using movement generator. Please tell me if this breaks any script. --HG-- branch : trunk --- src/game/MotionMaster.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/game/MotionMaster.cpp') diff --git a/src/game/MotionMaster.cpp b/src/game/MotionMaster.cpp index 3a7832fe914..b1168cac78d 100644 --- a/src/game/MotionMaster.cpp +++ b/src/game/MotionMaster.cpp @@ -511,6 +511,11 @@ void MotionMaster::MovePath(uint32 path_id, bool repeatable) i_owner->GetGUIDLow(), path_id, repeatable ? "YES" : "NO" ); } +void MotionMaster::MoveRotate(uint32 time, RotateDirection direction) +{ + Mutate(new RotateMovementGenerator(time, direction), MOTION_SLOT_ACTIVE); +} + void MotionMaster::propagateSpeedChange() { /*Impl::container_type::iterator it = Impl::c.begin(); -- cgit v1.2.3