*Fix a bug that mobs do not return home after wipe.

--HG--
branch : trunk
This commit is contained in:
megamage committed 2009-03-15 10:50:10 -06:00
1 parent 3421942b2b
commit abe53c5cb6
3 files changed
+12 -2

No files matched your search

+8
View File
@@ -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);