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

SC2: Fix Nondeterministic Behavior #4246

Merged
merged 3 commits into from
Nov 25, 2024

Conversation

Exempt-Medic
Copy link
Member

What is this fixing or adding?

enabled_campaigns is a set and iterating over a set is nondeterministic. This sorts the set and adds the < operator to the SC2Campaign class so it can be sorted.

How was this tested?

Generations and the Determinism Test PR

@Ziktofel

@github-actions github-actions bot added the waiting-on: peer-review Issue/PR has not been reviewed by enough people yet. label Nov 25, 2024
@Exempt-Medic Exempt-Medic added the is: bug/fix Issues that are reporting bugs or pull requests that are fixing bugs. label Nov 25, 2024
@Exempt-Medic Exempt-Medic added waiting-on: core-review Issue/PR has been peer-reviewed and is ready to be merged or needs input from a core maintainer. and removed waiting-on: peer-review Issue/PR has not been reviewed by enough people yet. labels Nov 25, 2024
@NewSoupVi NewSoupVi merged commit e6e31a2 into ArchipelagoMW:main Nov 25, 2024
18 checks passed
@Exempt-Medic Exempt-Medic deleted the sc2-determinism branch November 26, 2024 03:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
is: bug/fix Issues that are reporting bugs or pull requests that are fixing bugs. waiting-on: core-review Issue/PR has been peer-reviewed and is ready to be merged or needs input from a core maintainer.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants