diff --git a/Shared/Packet/Packets/PlayerPacket.cs b/Shared/Packet/Packets/PlayerPacket.cs index 8257c87..6e90b47 100644 --- a/Shared/Packet/Packets/PlayerPacket.cs +++ b/Shared/Packet/Packets/PlayerPacket.cs @@ -18,6 +18,7 @@ public struct PlayerPacket : IPacket { public bool Is2d = false; public bool ThrowingCap = false; public bool IsIt = false; + public bool IsCaptured = false; public int ScenarioNum = 0; [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 0x40)] @@ -46,8 +47,9 @@ public struct PlayerPacket : IPacket { MemoryMarshal.Write(data[offset++..], ref Is2d); MemoryMarshal.Write(data[offset++..], ref ThrowingCap); MemoryMarshal.Write(data[offset++..], ref IsIt); + MemoryMarshal.Write(data[offset++..], ref IsCaptured); MemoryMarshal.Write(data[offset..], ref ScenarioNum); - offset += 5; + offset += 4; Encoding.UTF8.GetBytes(Stage).CopyTo(data[offset..(offset + 0x40)]); offset += 0x40; Encoding.UTF8.GetBytes(Act).CopyTo(data[offset..(offset + NameSize)]); @@ -68,9 +70,9 @@ public struct PlayerPacket : IPacket { Is2d = MemoryMarshal.Read(data[offset++..]); ThrowingCap = MemoryMarshal.Read(data[offset++..]); IsIt = MemoryMarshal.Read(data[offset++..]); - // offset++; // padding + IsCaptured = MemoryMarshal.Read(data[offset++..]); ScenarioNum = MemoryMarshal.Read(data[offset..]); - offset += 5; + offset += 4; Stage = Encoding.UTF8.GetString(data[offset..(offset + 0x40)]).TrimEnd('\0'); offset += 0x40; Act = Encoding.UTF8.GetString(data[offset..(offset + NameSize)]).TrimEnd('\0');