mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 13:37:00 +00:00
[9213] Fixed typos in unit states used in waypoint movegen.
This commit is contained in:
parent
eaecc467d5
commit
64ba6c5714
2 changed files with 5 additions and 5 deletions
|
|
@ -79,17 +79,17 @@ void WaypointMovementGenerator<Creature>::Initialize( Creature &u )
|
||||||
i_nextMoveTime.Reset(0); // TODO: check the lower bound (0 is probably too small)
|
i_nextMoveTime.Reset(0); // TODO: check the lower bound (0 is probably too small)
|
||||||
u.StopMoving();
|
u.StopMoving();
|
||||||
LoadPath(u);
|
LoadPath(u);
|
||||||
u.addUnitState(UNIT_STAT_ROAMING|UNIT_STAT_ROAMING);
|
u.addUnitState(UNIT_STAT_ROAMING|UNIT_STAT_ROAMING_MOVE);
|
||||||
}
|
}
|
||||||
|
|
||||||
void WaypointMovementGenerator<Creature>::Finalize( Creature &u )
|
void WaypointMovementGenerator<Creature>::Finalize( Creature &u )
|
||||||
{
|
{
|
||||||
u.clearUnitState(UNIT_STAT_ROAMING|UNIT_STAT_ROAMING);
|
u.clearUnitState(UNIT_STAT_ROAMING|UNIT_STAT_ROAMING_MOVE);
|
||||||
}
|
}
|
||||||
|
|
||||||
void WaypointMovementGenerator<Creature>::Interrupt( Creature &u )
|
void WaypointMovementGenerator<Creature>::Interrupt( Creature &u )
|
||||||
{
|
{
|
||||||
u.addUnitState(UNIT_STAT_ROAMING|UNIT_STAT_ROAMING);
|
u.addUnitState(UNIT_STAT_ROAMING|UNIT_STAT_ROAMING_MOVE);
|
||||||
}
|
}
|
||||||
|
|
||||||
void WaypointMovementGenerator<Creature>::Reset( Creature &u )
|
void WaypointMovementGenerator<Creature>::Reset( Creature &u )
|
||||||
|
|
@ -97,7 +97,7 @@ void WaypointMovementGenerator<Creature>::Reset( Creature &u )
|
||||||
ReloadPath(u);
|
ReloadPath(u);
|
||||||
b_StoppedByPlayer = false;
|
b_StoppedByPlayer = false;
|
||||||
i_nextMoveTime.Reset(0);
|
i_nextMoveTime.Reset(0);
|
||||||
u.addUnitState(UNIT_STAT_ROAMING|UNIT_STAT_ROAMING);
|
u.addUnitState(UNIT_STAT_ROAMING|UNIT_STAT_ROAMING_MOVE);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool WaypointMovementGenerator<Creature>::Update(Creature &creature, const uint32 &diff)
|
bool WaypointMovementGenerator<Creature>::Update(Creature &creature, const uint32 &diff)
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "9212"
|
#define REVISION_NR "9213"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue