aboutsummaryrefslogtreecommitdiff
path: root/src/game/MotionMaster.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-03-15 10:50:10 -0600
committermegamage <none@none>2009-03-15 10:50:10 -0600
commitabe53c5cb617a15dd5155ea7b383bc6b9618c4fa (patch)
tree5043691da13c58062702defeb032a3b63d4aee61 /src/game/MotionMaster.cpp
parent3421942b2bfd96178493f853751aa4c4fabb3bb0 (diff)
*Fix a bug that mobs do not return home after wipe.
--HG-- branch : trunk
Diffstat (limited to 'src/game/MotionMaster.cpp')
-rw-r--r--src/game/MotionMaster.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/game/MotionMaster.cpp b/src/game/MotionMaster.cpp
index b64c17b6342..170a9b52211 100644
--- a/src/game/MotionMaster.cpp
+++ b/src/game/MotionMaster.cpp
@@ -460,6 +460,14 @@ MovementGeneratorType MotionMaster::GetCurrentMovementGeneratorType() const
return top()->GetMovementGeneratorType();
}
+MovementGeneratorType MotionMaster::GetMotionSlotType(int slot) const
+{
+ if(!Impl[slot])
+ return NULL_MOTION_TYPE;
+ else
+ return Impl[slot]->GetMovementGeneratorType();
+}
+
void MotionMaster::InitTop()
{
top()->Initialize(*i_owner);