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

ceil(x) conversion for 515 #6262

Merged
merged 1 commit into from
May 13, 2024
Merged

Conversation

Doubleumc
Copy link
Contributor

@Doubleumc Doubleumc commented May 8, 2024

About the pull request

image
https://www.byond.com/docs/ref/#/proc/ceil

With the move to 515, removes these two defines in favor of ceil(x):
#define ROUND_UP(x) ( -round(-(x)))
#define Ceiling(x) (-round(-(x)))

Also converts the two-argument CEILING(x, y) to use ceil internally.

Explain why it's good for the game

Less bespoke code means less points of failure.

Testing Photographs and Procedure

Boots without obvious issue.

Changelog

No player-facing changes.

@Doubleumc Doubleumc requested a review from fira as a code owner May 8, 2024 19:14
@github-actions github-actions bot added the Missing Changelog Maintainers always document their changes. label May 8, 2024
@harryob harryob added Code Improvement Make the code longer and removed Missing Changelog Maintainers always document their changes. labels May 8, 2024
@github-actions github-actions bot added the Missing Changelog Maintainers always document their changes. label May 9, 2024
@Doubleumc Doubleumc changed the title ceil(x) conversion ceil(x) conversion for 515 May 9, 2024
@Drulikar Drulikar added this pull request to the merge queue May 13, 2024
Merged via the queue into cmss13-devs:master with commit 13af26a May 13, 2024
30 checks passed
@Doubleumc Doubleumc deleted the ceil-conversion branch May 13, 2024 02:15
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 Missing Changelog Maintainers always document their changes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants