-
Notifications
You must be signed in to change notification settings - Fork 41
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
Don't try to set the ruleset based on the tileset #1167
Conversation
This makes crashes less likely since no pointer is used.
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.
72ed772
to
f28c8c6
Compare
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why reformat comments ? :/
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
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.