Skip to content

Conversation

@NotHyper-474
Copy link
Contributor

@NotHyper-474 NotHyper-474 commented Oct 24, 2025

Description

Fixes wrong checks for NaN, the Math.isNaN function should be used instead of comparing the values because it's always gonna be False...

https://try.haxe.org/#6ea88699
^ You can see how Math.isNaN returns the correct result here

@github-actions github-actions bot added status: pending triage Awaiting review. pr: haxe PR modifies game code. size: small A small pull request with 10 or fewer changes. labels Oct 24, 2025
@AbnormalPoof AbnormalPoof added the type: minor bug Involves a minor bug or issue. label Oct 25, 2025
@FuroYT
Copy link

FuroYT commented Oct 25, 2025

LGTM!

Copy link
Member

@EliteMasterEric EliteMasterEric left a comment

Choose a reason for hiding this comment

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

Looks good, did some checking and yea, Math.NaN is implemented such that it is equal to no other value (even Math.NaN == Math.NaN returns false).

@Hundrec Hundrec added this to the 0.7.6 milestone Dec 12, 2025
@Hundrec Hundrec added status: accepted PR was approved for contribution. If it's not already merged, it may be merged on a private branch. and removed status: pending triage Awaiting review. labels Dec 12, 2025
@Hundrec Hundrec changed the base branch from develop to dummy/develop-v0.7.5 December 12, 2025 23:59
@Hundrec Hundrec merged commit 6bbcf42 into FunkinCrew:dummy/develop-v0.7.5 Dec 12, 2025
4 checks passed
@NotHyper-474 NotHyper-474 deleted the fix/wrong-nan-check branch December 13, 2025 00:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr: haxe PR modifies game code. size: small A small pull request with 10 or fewer changes. status: accepted PR was approved for contribution. If it's not already merged, it may be merged on a private branch. type: minor bug Involves a minor bug or issue.

Development

Successfully merging this pull request may close these issues.

6 participants