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

Take team_pooled_research into account when looping over research #1636

Merged

Conversation

lmoureaux
Copy link
Contributor

The number of valid research objects is the number of teams when team_pooled_research is enabled, and the number of players when it is disabled. The code was always assuming the first case, which created bugs in team games without pooled research.

Fixes 22c0c4b.

Observed in the LT76Team test game.

Test plan:

  • Check that research is working normally in single player
  • Check that research is working normally in a team game with shared research (/set team_pooled_r en)
  • Check that research is working normally in LT76Team (which will have this patch in a few minutes)

The number of valid research objects is the number of teams when
team_pooled_research is enabled, and the number of players when it is disabled.
The code was always assuming the first case, which created bugs in team games
without pooled research.

Fixes 22c0c4b.
Copy link
Collaborator

@jwrober jwrober left a comment

Choose a reason for hiding this comment

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

This is working for me on all three scenarios.

@lmoureaux lmoureaux merged commit 705ad54 into longturn:master Dec 27, 2022
@lmoureaux lmoureaux deleted the bugfix/teams-without-pooled-research branch December 27, 2022 20:07
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