Core/PacketIO: 9.1.5 updatefields and SMSG_UPDATE_OBJECT structure
Port From (https://github.com/TrinityCore/TrinityCore/commit/5c8a058120dcf2c3ff8592886cb842ca889e0411)
This commit is contained in:
@@ -459,10 +459,6 @@ namespace Game.Entities
|
||||
bool hasMorphCurveID = createProperties != null && createProperties.MorphCurveId != 0;
|
||||
bool hasFacingCurveID = createProperties != null && createProperties.FacingCurveId != 0;
|
||||
bool hasMoveCurveID = createProperties != null && createProperties.MoveCurveId != 0;
|
||||
bool hasAnimation = createProperties != null && createProperties.AnimId != 0;
|
||||
bool hasUnk3 = areaTriggerTemplate != null && areaTriggerTemplate.HasFlag(AreaTriggerFlags.Unk3);
|
||||
bool hasAnimKitID = createProperties != null && createProperties.AnimKitId != 0;
|
||||
bool hasAnimProgress = false;
|
||||
bool hasAreaTriggerSphere = shape.IsSphere();
|
||||
bool hasAreaTriggerBox = shape.IsBox();
|
||||
bool hasAreaTriggerPolygon = createProperties != null && shape.IsPolygon();
|
||||
@@ -482,10 +478,6 @@ namespace Game.Entities
|
||||
data.WriteBit(hasMorphCurveID);
|
||||
data.WriteBit(hasFacingCurveID);
|
||||
data.WriteBit(hasMoveCurveID);
|
||||
data.WriteBit(hasAnimation);
|
||||
data.WriteBit(hasAnimKitID);
|
||||
data.WriteBit(hasUnk3);
|
||||
data.WriteBit(hasAnimProgress);
|
||||
data.WriteBit(hasAreaTriggerSphere);
|
||||
data.WriteBit(hasAreaTriggerBox);
|
||||
data.WriteBit(hasAreaTriggerPolygon);
|
||||
@@ -494,9 +486,6 @@ namespace Game.Entities
|
||||
data.WriteBit(hasOrbit);
|
||||
data.WriteBit(hasMovementScript);
|
||||
|
||||
if (hasUnk3)
|
||||
data.WriteBit(false);
|
||||
|
||||
data.FlushBits();
|
||||
|
||||
if (hasAreaTriggerSpline)
|
||||
@@ -522,15 +511,6 @@ namespace Game.Entities
|
||||
if (hasMoveCurveID)
|
||||
data.WriteUInt32(createProperties.MoveCurveId);
|
||||
|
||||
if (hasAnimation)
|
||||
data.WriteUInt32(createProperties.AnimId);
|
||||
|
||||
if (hasAnimKitID)
|
||||
data.WriteUInt32(createProperties.AnimKitId);
|
||||
|
||||
if (hasAnimProgress)
|
||||
data.WriteUInt32(0);
|
||||
|
||||
if (hasAreaTriggerSphere)
|
||||
{
|
||||
data.WriteFloat(shape.SphereDatas.Radius);
|
||||
|
||||
Reference in New Issue
Block a user