forked from Sanae6/SmoOnlineServer
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: only parse time & seeking from TagPackets for Hide&Seek or Sardines
Freeze-Tag uses the same `UpdateType` flags for some of its `TagPacket`s as H&S and Sardines do. But Freeze-Tag has another packet data structure that isn't matching IsIt, Seconds and Minutes. Therefore the server wrongly interprets Freeze-Tag packets and updates its "seeking" and "time" metadata wrongly. (These metadata fields are used to resend the `TagPacket` to later joining clients.) This commit does the following changes: - add: game mode detection in the first 4 bit of the `TagPacket.UpdateType` - change: parse the `TagPacket` for the metadata iff it is clearly for H&S or Sardines - change: only resend `TagPacket` to new clients for H&S or Sardines
- Loading branch information
Showing
4 changed files
with
77 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters