Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: minutes in tag packets and tag server commands #56

Merged
merged 5 commits into from
Jun 21, 2024

Conversation

Istador
Copy link
Contributor

@Istador Istador commented Jun 21, 2024

No description provided.

Istador added 4 commits June 21, 2024 22:01
Seconds are only one byte big and not two, so the Minutes start at byte 3 and not 4.
Broadcast() with a sender never sends the packet to the sender.
Therefore only other players got informed about the new role.
But never the actual player that is supposed to change to that role.
@Istador
Copy link
Contributor Author

Istador commented Jun 21, 2024

Maybe the Size also needs to be 5 instead of 6?

public TagUpdate UpdateType;
public bool IsIt;
public byte Seconds;
public ushort Minutes;
public short Size => 6;

Works fine with 6 though.


Code in the client for reference.

@Sanae6 Sanae6 merged commit 6ec213b into Sanae6:master Jun 21, 2024
1 check passed
Copy link
Contributor Author

@Istador Istador left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✔️ I tested in-game that the tag updates and commands still function properly with a Size of 5.

(The current client doesn't keep the time for longer than a frame, and doesn't update the role icon, but these are client bugs that I already fixed in my local version I'm working on for the client.)

@Istador Istador deleted the pr-tag-cmd branch June 21, 2024 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants