Core/Units: Re-remove MOVEMENTFLAG_ROOT applying on Unit::SetRooted to fix a clientside freeze issue (our visibility system is co-reponsible). It's still an ugly hack and should be fixed properly asap.
Closes #879
This commit is contained in:
@@ -15363,7 +15363,7 @@ void Unit::SetRooted(bool apply)
|
|||||||
if (m_rootTimes > 0) //blizzard internal check?
|
if (m_rootTimes > 0) //blizzard internal check?
|
||||||
m_rootTimes++;
|
m_rootTimes++;
|
||||||
|
|
||||||
AddUnitMovementFlag(MOVEMENTFLAG_ROOT);
|
// AddUnitMovementFlag(MOVEMENTFLAG_ROOT);
|
||||||
|
|
||||||
if (Player* thisPlr = this->ToPlayer())
|
if (Player* thisPlr = this->ToPlayer())
|
||||||
{
|
{
|
||||||
@@ -15398,7 +15398,7 @@ void Unit::SetRooted(bool apply)
|
|||||||
SendMessageToSet(&data,true);
|
SendMessageToSet(&data,true);
|
||||||
}
|
}
|
||||||
|
|
||||||
RemoveUnitMovementFlag(MOVEMENTFLAG_ROOT);
|
// RemoveUnitMovementFlag(MOVEMENTFLAG_ROOT);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user