Core/Movement: reset position update interrupt info after the interrupt checks have been executed

* for discussion see: 02daf1bf3a (r36916229)
This commit is contained in:
Ovahlord
2020-01-22 20:40:09 +01:00
parent 02daf1bf3a
commit 01584cb0b9
2 changed files with 9 additions and 0 deletions

View File

@@ -461,6 +461,9 @@ void Unit::Update(uint32 p_time)
else if (!movespline->Finalized())
InterruptMovementBasedAuras();
// All position info based actions have been executed, reset info
_positionUpdateInfo.Reset();
if (!GetAI() && (GetTypeId() != TYPEID_PLAYER || (IsCharmed() && GetCharmerGUID().IsCreature())))
UpdateCharmAI();
RefreshAI();

View File

@@ -716,6 +716,12 @@ enum ReactiveType
struct PositionUpdateInfo
{
void Reset()
{
Relocated = false;
Turned = false;
}
bool Relocated = false;
bool Turned = false;
};