Core/Transports: Path generation rewrite v2 (needs testing)
Port From (https://github.com/TrinityCore/TrinityCore/commit/a2c1b699e6e4d30c752b65241bc23191920a86fd)
This commit is contained in:
@@ -301,7 +301,7 @@ namespace Game.Networking.Packets
|
||||
}
|
||||
}
|
||||
|
||||
public static void WriteCreateObjectAreaTriggerSpline(Spline spline, WorldPacket data)
|
||||
public static void WriteCreateObjectAreaTriggerSpline(Spline<int> spline, WorldPacket data)
|
||||
{
|
||||
data.WriteBits(spline.GetPoints().Length, 16);
|
||||
foreach (var point in spline.GetPoints())
|
||||
@@ -425,7 +425,7 @@ namespace Game.Networking.Packets
|
||||
movementSpline.SpellEffectExtraData = spellEffectExtraData;
|
||||
}
|
||||
|
||||
Spline spline = moveSpline.spline;
|
||||
var spline = moveSpline.spline;
|
||||
Vector3[] array = spline.GetPoints();
|
||||
|
||||
if (splineFlags.HasFlag(SplineFlag.UncompressedPath))
|
||||
|
||||
Reference in New Issue
Block a user