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

Don't try to set the ruleset based on the tileset #1167

Merged

Conversation

lmoureaux
Copy link
Contributor

The last used tileset was saved in the options file, but that value wasn't shown anywhere in the interface. It was then used instead of the tileset configured in the settings when the topology matched. This was a source of confusion. Get rid of this behavior by removing the hidden option.


The tileset in pregame isn't well defined because the topology isn't known yet. Always start servers with the default ruleset, and load a tileset based on that.

If the user want to spawn a client with a given ruleset, they can use the -r option.

This makes crashes less likely since no pointer is used.
@lmoureaux lmoureaux added bug Something isn't working gui This issue requires changes to the user interface spec-file Related to Rulesets, Tilesets, Musicsets, Soundsets, etc. labels Jul 30, 2022
@lmoureaux lmoureaux requested a review from psampathkumar July 30, 2022 17:17
The last used tileset was saved in the options file, but that value wasn't
shown anywhere in the interface. It was then used *instead* of the tileset
configured in the settings when the topology matched. This was a source of
confusion. Get rid of this behavior by removing the hidden option.
The tileset in pregame isn't well defined because the topology isn't known yet.
Always start servers with the default ruleset, and load a tileset based on
that.

If the user want to spawn a client with a given ruleset, they can use the -r
option.
It's no longer supported.
@lmoureaux lmoureaux force-pushed the bugfix/hidden-tileset-changes-ruleset branch from 72ed772 to f28c8c6 Compare July 30, 2022 18:37
@lmoureaux lmoureaux marked this pull request as ready for review July 30, 2022 18:37
bool first_boot; /* There was no earlier options saved.
* This affects some migrations, but not all. */
char default_tileset_name[512]; // pre-2.6 had just this one tileset name
bool first_boot; /* There was no earlier options saved.
Copy link
Contributor

Choose a reason for hiding this comment

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

Why reformat comments ? :/

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Clang-format because it aligns them

Copy link
Contributor

Choose a reason for hiding this comment

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

Argh, breaks git blame. But ok I guess.

@psampathkumar psampathkumar merged commit 9aa632e into longturn:master Aug 2, 2022
@psampathkumar psampathkumar deleted the bugfix/hidden-tileset-changes-ruleset branch August 2, 2022 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working gui This issue requires changes to the user interface spec-file Related to Rulesets, Tilesets, Musicsets, Soundsets, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants