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

add divide to COMPUTE_FLAG #2972

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft

Conversation

PieterVdc
Copy link
Member

No description provided.

{
if(sum == 0)
{
WARNMSG("COMPUTE_FLAG tried to divide by 0.");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If a player creates this in a next_command_reusable, it will still crash the game, but with a 30 minute delay until the log file is too large.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If a player creates this in a next_command_reusable, it will still crash the game, but with a 30 minute delay until the log file is too large.

so this need a check to deallocate the script value it so it shows only one time in the log?

@walt253
Copy link
Contributor

walt253 commented Jan 23, 2024

Calculation method that could possibly be useful for mapmakers: modulo, square.
Also could add a new optional parameter for floor or ceil for the division?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants