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 bug where we incorrectly added a user as a player instead of a spectator #189

Merged
merged 3 commits into from
Mar 13, 2024

Conversation

AlecM33
Copy link
Owner

@AlecM33 AlecM33 commented Mar 13, 2024

There was a pretty niche scenario where a user could join a game that is already in-progress and get assigned the role of "Player." This happened when the game was started with a Temporary Moderator, but then someone was killed and we established a Dedicated Mod. In that case, the server failed to detect the state of the game correctly and assumed they should be a Player.

To fix this, we added a check for the status being "In Progess" as a condition where we should add any new joiners as spectators.

@AlecM33 AlecM33 merged commit 915819b into master Mar 13, 2024
3 checks passed
@AlecM33 AlecM33 deleted the join-when-in-progess-bug branch March 27, 2024 00:08
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.

None yet

1 participant