0
0
Fork 0
mirror of https://github.com/Sanae6/SmoOnlineServer.git synced 2024-11-21 18:55:17 +00:00

Waaaa copium seethe

This commit is contained in:
Sanae 2022-03-15 02:08:52 -06:00
parent 7ca0b8591a
commit cc67ac9ced
2 changed files with 3 additions and 3 deletions

View file

@ -199,7 +199,7 @@ CommandHandler.RegisterCommand("tag", args => {
Parallel.ForEachAsync(server.Clients.Except(seekers), async (hider, _) =>
await hider.Send(new TagPacket {
UpdateType = TagPacket.TagUpdate.State,
IsIt = true
IsIt = false
})
)
);

View file

@ -15,14 +15,14 @@ public struct TagPacket : IPacket {
MemoryMarshal.Write(data, ref UpdateType);
MemoryMarshal.Write(data[1..], ref IsIt);
MemoryMarshal.Write(data[2..], ref Seconds);
MemoryMarshal.Write(data[3..], ref Minutes);
MemoryMarshal.Write(data[4..], ref Minutes);
}
public void Deserialize(Span<byte> data) {
UpdateType = MemoryMarshal.Read<TagUpdate>(data);
IsIt = MemoryMarshal.Read<bool>(data[1..]);
Seconds = MemoryMarshal.Read<byte>(data[2..]);
Minutes = MemoryMarshal.Read<ushort>(data[3..]);
Minutes = MemoryMarshal.Read<ushort>(data[4..]);
}
[Flags]