Skip to content

Fix: The bullet with undefined function will explode on the the top-left corner in y' mode#28

Open
Cmd-GZ wants to merge 1 commit into
catabriga:masterfrom
Cmd-GZ:fix/Function
Open

Fix: The bullet with undefined function will explode on the the top-left corner in y' mode#28
Cmd-GZ wants to merge 1 commit into
catabriga:masterfrom
Cmd-GZ:fix/Function

Conversation

@Cmd-GZ

@Cmd-GZ Cmd-GZ commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

In y' mode, if you send a function that is undefined, such as log(x), sqrt(x), ln(x), at the starting point, instead of exploding at the starting point, the bullet will explode on the top-left corner.
图片
图片

I have no idea that what stuff exactly causes it, but it's suprise that I fixed it when I try reorganising the Function.java unconsciously.
图片
图片

Just like I said, the code in src/Graphwar/Function.java is organized to make it more readable, which fixes the bug somehow.

…eft corner in y' mode

In y' mode, if you send a function that is undefined, such as `log(x)`, `sqrt(x)`, `ln(x)`, at the starting point, instead of exploding at the starting point, the bullet will explode on the top-left corner.
I have no idea that what stuff exactly causes it, but it's suprise that I fixed it when I try reorganising the `Function.java` unconsciously.
Just like I said, the code in `src/Graphwar/Function.java` is organized to make it more readable, which fixes the bug somehow.
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.

1 participant