mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
Get rid of monster movement flags, since it's really spline flags.
Thanks to Ralek for research.
This commit is contained in:
parent
4a3081e7d5
commit
db547a008a
20 changed files with 206 additions and 182 deletions
|
|
@ -27,7 +27,7 @@
|
|||
void
|
||||
HomeMovementGenerator<Creature>::Initialize(Creature & owner)
|
||||
{
|
||||
owner.RemoveMonsterMoveFlag(MONSTER_MOVE_WALK);
|
||||
owner.RemoveSplineFlag(SPLINEFLAG_WALKMODE);
|
||||
_setTargetLocation(owner);
|
||||
}
|
||||
|
||||
|
|
@ -63,7 +63,7 @@ HomeMovementGenerator<Creature>::Update(Creature &owner, const uint32& time_diff
|
|||
|
||||
if (time_diff > i_travel_timer)
|
||||
{
|
||||
owner.AddMonsterMoveFlag(MONSTER_MOVE_WALK);
|
||||
owner.AddSplineFlag(SPLINEFLAG_WALKMODE);
|
||||
|
||||
// restore orientation of not moving creature at returning to home
|
||||
if(owner.GetDefaultMovementType()==IDLE_MOTION_TYPE)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue