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

Assign Tank control using priority queue #781

Merged
merged 2 commits into from
Jun 29, 2024

Conversation

altair-sossai
Copy link
Contributor

  • Refactored the code responsible for assigning the Tank to players. A priority queue is now used to determine the order of players who will control the Tank.
  • This resolves the issue where a player who has previously been assigned as a Tank is replaced, the new player will only assume control after all other players had their turn.

#664

- Refactored the code responsible for assigning the Tank to players. A priority queue is now used to determine the order of players who will control the Tank.
- This resolves the issue where a player who has previously been assigned as a Tank is replaced, the new player will only assume control after all other players had their turn.
@SirPlease SirPlease merged commit 8df6642 into SirPlease:master Jun 29, 2024
2 checks passed
SirPlease added a commit that referenced this pull request Jun 29, 2024
- Fix a print oopsie.
- Bump version as last big change did not. (#781)
@altair-sossai altair-sossai deleted the l4d_tank_control_eq_queue branch June 29, 2024 12:34
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