mirror of
https://github.com/mangosfour/server.git
synced 2025-12-29 07:37:05 +00:00
[Build] Most errors fixed
This commit is contained in:
parent
868302dd0b
commit
778052084e
70 changed files with 619 additions and 602 deletions
|
|
@ -38,7 +38,7 @@ void ConfusedMovementGenerator<T>::Initialize(T& unit)
|
|||
// set initial position
|
||||
unit.GetPosition(i_x, i_y, i_z);
|
||||
|
||||
if (!unit.isAlive() || unit.hasUnitState(UNIT_STAT_NOT_MOVE))
|
||||
if (!unit.IsAlive() || unit.hasUnitState(UNIT_STAT_NOT_MOVE))
|
||||
return;
|
||||
|
||||
unit.StopMoving();
|
||||
|
|
@ -58,7 +58,7 @@ void ConfusedMovementGenerator<T>::Reset(T& unit)
|
|||
{
|
||||
i_nextMoveTime.Reset(0);
|
||||
|
||||
if (!unit.isAlive() || unit.hasUnitState(UNIT_STAT_NOT_MOVE))
|
||||
if (!unit.IsAlive() || unit.hasUnitState(UNIT_STAT_NOT_MOVE))
|
||||
return;
|
||||
|
||||
unit.StopMoving();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue