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:
Machiavelli
2011-03-06 16:07:01 +01:00
parent d5be3353f3
commit 10c02690b6
+2 -2
View File
@@ -15363,7 +15363,7 @@ void Unit::SetRooted(bool apply)
if (m_rootTimes > 0) //blizzard internal check?
m_rootTimes++;
AddUnitMovementFlag(MOVEMENTFLAG_ROOT);
// AddUnitMovementFlag(MOVEMENTFLAG_ROOT);
if (Player* thisPlr = this->ToPlayer())
{
@@ -15398,7 +15398,7 @@ void Unit::SetRooted(bool apply)
SendMessageToSet(&data,true);
}
RemoveUnitMovementFlag(MOVEMENTFLAG_ROOT);
// RemoveUnitMovementFlag(MOVEMENTFLAG_ROOT);
}
}
}