mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[9461] Some another cases when movegen can be lost while updating.
This commit is contained in:
parent
01e05f5d7e
commit
c179c45087
5 changed files with 16 additions and 3 deletions
|
|
@ -71,7 +71,11 @@ bool PointMovementGenerator<T>::Update(T &unit, const uint32 &diff)
|
|||
|
||||
unit.addUnitState(UNIT_STAT_ROAMING_MOVE);
|
||||
Traveller<T> traveller(unit);
|
||||
i_destinationHolder.UpdateTraveller(traveller, diff, false);
|
||||
if (i_destinationHolder.UpdateTraveller(traveller, diff, false))
|
||||
{
|
||||
if (!IsActive(unit)) // force stop processing (movement can move out active zone with cleanup movegens list)
|
||||
return true; // not expire now, but already lost
|
||||
}
|
||||
|
||||
if(i_destinationHolder.HasArrived())
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue