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

Divorce town seed from game seed #7563

Merged
merged 1 commit into from
Nov 27, 2024

Conversation

StephenCWills
Copy link
Member

#7030 removed the logic that combines the town seed with SDL_GetTicks() because the GenerateSeed() function that uses the xoshiro generator was applied to town seed rotation in SaveLevel() and DeltaLeaveSync(). However, the initial town seed is still dependent on the game seed, meaning players who join the same Multiplayer game session will have the same initial set of shops. This PR further applies the xoshiro generator to the initial town seed to fix that blind spot.

@AJenbo AJenbo merged commit e81121a into diasurgical:master Nov 27, 2024
23 checks passed
@AJenbo
Copy link
Member

AJenbo commented Nov 27, 2024

I thought syncing shops was a feature :D

@StephenCWills StephenCWills deleted the fix-mp-shop-sync branch November 27, 2024 16:43
@StephenCWills
Copy link
Member Author

I guess it could be made into a feature. Might be worth implementing an option for Lua or something.

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