Core/Objects: Changed how update fields changes are identified, no longer storing old value to compare with new. Instead fields are now simply marked if changed. This means that even if a field changes back to its original value, packet will be sent anyway (client expects it for some fields like shapeshift)

This commit is contained in:
Shauren
2011-08-28 18:31:37 +02:00
parent 8cf3e5536a
commit 8c707a13de
3 changed files with 60 additions and 47 deletions
-5
View File
@@ -1866,11 +1866,6 @@ class Unit : public WorldObject
void SetShapeshiftForm(ShapeshiftForm form)
{
SetByteValue(UNIT_FIELD_BYTES_2, 3, form);
// force update as too quick shapeshifting and back
// causes the value to stay the same serverside
// causes issues clientside (player gets stuck)
ForceValuesUpdateAtIndex(UNIT_FIELD_BYTES_2);
}
inline bool IsInFeralForm() const