-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Limit number of allowed beatmap combo colours to 8 #32110
Conversation
bool isCombo = pair.Key.StartsWith(@"Combo", StringComparison.Ordinal) | ||
&& int.TryParse(pair.Key[5..], out int comboIndex) | ||
&& comboIndex >= 1 && comboIndex <= MAX_COMBO_COLOUR_COUNT; |
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.
By the way, I am choosing not to notice that none of this parsing logic actually checks that the combo colours are in order and just parses them sequentially without examining the number in the key, because it's very annoying to handle and it's been the case before I came here. Until someone invariably reports that as an issue, that is.
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.
Seems reasonable
d305153
to
0b45377
Compare
Wasn't a huge fan of the button disappearing, so made it disable instead @bdach please double check. |
Changes look fine, thanks 👍 |
Closes #31936.
Matching stable.