Core/Units: Extend change from 6ce529 to Unit::SetRooted as well (was overlooked)

This commit is contained in:
Machiavelli
2011-06-27 13:33:56 +02:00
parent 360f0534ce
commit 921b39fb2d
+5 -2
View File
@@ -15667,7 +15667,10 @@ void Unit::SetRooted(bool apply)
if (m_rootTimes > 0) // blizzard internal check?
m_rootTimes++;
// AddUnitMovementFlag(MOVEMENTFLAG_ROOT);
// MOVEMENTFLAG_ROOT cannot be used in conjunction with ie. MOVEMENTFLAG_FORWARD,
// this will freeze clients. That's why we remove any current movement flags before
// setting MOVEMENTFLAG_ROOT
SetUnitMovementFlags(MOVEMENTFLAG_ROOT);
if (GetTypeId() == TYPEID_PLAYER)
{
@@ -15702,7 +15705,7 @@ void Unit::SetRooted(bool apply)
SendMessageToSet(&data, true);
}
// RemoveUnitMovementFlag(MOVEMENTFLAG_ROOT);
RemoveUnitMovementFlag(MOVEMENTFLAG_ROOT);
}
}
}