Core/Movement: properly fix aura interrupts during movement

Port From (https://github.com/TrinityCore/TrinityCore/commit/43a7091e8a86179e195e2bc021133ce751d48d48)
This commit is contained in:
hondacrx
2022-01-06 10:24:20 -05:00
parent 923a993f1e
commit 8c71ecf0b2
4 changed files with 42 additions and 5 deletions
+13
View File
@@ -43,6 +43,7 @@ namespace Game.Entities
public uint m_movementCounter; //< Incrementing counter used in movement packets
TimeTrackerSmall movesplineTimer;
MovementForces _movementForces;
PositionUpdateInfo _positionUpdateInfo;
protected Unit m_unitMovedByMe; // only ever set for players, and only for direct client control
protected Player m_playerMovingMe; // only set for direct client control (possess effects, vehicles and similar)
@@ -555,4 +556,16 @@ namespace Game.Entities
{
public StringArray name = new(SharedConst.MaxDeclinedNameCases);
}
struct PositionUpdateInfo
{
public bool Relocated;
public bool Turned;
public void Reset()
{
Relocated = false;
Turned = false;
}
}
}