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

Fixes a few cases of round() being floor() #8348

Merged
merged 1 commit into from
Feb 5, 2025

Conversation

Zonespace27
Copy link
Contributor

@Zonespace27 Zonespace27 commented Feb 4, 2025

About the pull request

So, round(), if only provided 1 arg, is actually floor(). This behavior is kept in solely because it's legacy behavior that code may depend on. As such, I'm moving our 4 cases of it to not use this behavior.

A thank you to Kapu for providing the regex \bround\s*\((\s*[^,()]*\s*\)) to help find these cases.

Explain why it's good for the game

Clarifies a few edge cases to be less ambiguous and depend less on deprecated legacy behavior.

@cmss13-ci cmss13-ci bot added the Missing Changelog Maintainers always document their changes. label Feb 4, 2025
@hry-gh hry-gh added this pull request to the merge queue Feb 5, 2025
Merged via the queue into cmss13-devs:master with commit a8b3418 Feb 5, 2025
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Missing Changelog Maintainers always document their changes.
Projects
Status: Merged
Development

Successfully merging this pull request may close these issues.

2 participants