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

Teams: Fix debug player spawn after deleting team config class. #186

Open
wants to merge 1 commit into
base: development
Choose a base branch
from

Conversation

dijksterhuis
Copy link
Contributor

@dijksterhuis dijksterhuis commented Oct 8, 2024

Reproduction:

  1. Mission has a TeamX class in the teams.hpp config
  2. Player joins a server and joins TeamX
  3. Player leaves the server
  4. Mission is updated with TeamX deleted from the teams.hpp config
  5. On next server join, player will spawn in debug, as the team does not exist and there's no associated respawn point.

Fixed by checking if the player's current team exists in the config. If not, chuck them into MikeForce team as a fallback.

Could also be fixed manually by server owners fiddling around with player data in the server's profileNamespace. But that's a bit of a pain to do.

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.

1 participant