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

Defines cleanup #5439

Merged
merged 8 commits into from
Jan 15, 2024
Merged

Defines cleanup #5439

merged 8 commits into from
Jan 15, 2024

Conversation

Doubleumc
Copy link
Contributor

@Doubleumc Doubleumc commented Jan 13, 2024

About the pull request

Cleans up some duplicate, unused, and/or obsolete (due to native DM implementation) defines. Each change is isolated in its own commit if any are objectionable.

Explain why it's good for the game

Less duplication leads to greater maintainability.

Testing Photographs and Procedure

Screenshots & Videos

Put screenshots and videos here with an empty line between the screenshots and the <details> tags.

Changelog

No player-facing changes.

replace Clamp() define with native clamp() function
replace Tan() define with native tan() function
replace roundNearest() define with native round(x, 1) function
replace CEILING(x, 1) use with simpler Ceiling() define, in 515 all Ceiling() use can be replaced by native ceiling()
replace FLOOR(x, 1) use with simpler Floor() define, in 515 all Floor() use can be replaced by native floor()
@Doubleumc Doubleumc requested a review from fira as a code owner January 13, 2024 03:56
@Birdtalon Birdtalon added the Code Improvement Make the code longer label Jan 13, 2024
replace n_ceil() use with Ceiling() define
@harryob harryob added this pull request to the merge queue Jan 15, 2024
Merged via the queue into cmss13-devs:master with commit 5a11150 Jan 15, 2024
26 checks passed
@Doubleumc Doubleumc deleted the defines-cleanup branch January 15, 2024 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code Improvement Make the code longer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants