diff options
| author | megamage <none@none> | 2009-08-29 17:14:47 -0500 |
|---|---|---|
| committer | megamage <none@none> | 2009-08-29 17:14:47 -0500 |
| commit | 69c487abe51ac655b1f9cd4bc7388fb01e30fb0e (patch) | |
| tree | 41714f3abf1ecbd78f2fdc8c5f1adce57e06b7c7 /src/game/MotionMaster.cpp | |
| parent | 13eda038fd1c31565672191da20bac9cd392e60e (diff) | |
*Handle creature rotation using movement generator. Please tell me if this breaks any script.
--HG--
branch : trunk
Diffstat (limited to 'src/game/MotionMaster.cpp')
| -rw-r--r-- | src/game/MotionMaster.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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(); |
