Skip to content

[BUGFIX] Fix LatencyState cleanup not being performed in hot-reload #5085

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

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

NotHyper-474
Copy link
Contributor

@NotHyper-474 NotHyper-474 commented May 14, 2025

Linked Issues

Fixes the NOR in #4252 (please make two different things two separate issues ok thx)

Description

The close function was never being called by anything so in some cases cleanup would never run and cause an error.
But destroy on the other hand can be relied on, so this fixes this by simply replacing close with it.

(Not sure why someone would run hot-reload in the input offsets state though... oh wait, this also happens if you press F4 since there's also a state switch, so valid issue I guess)

Screenshots/Videos

N/A guhh i can't be bothered to make a video for this fix

@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. and removed status: pending triage Awaiting review. labels May 14, 2025
@NotHyper-474 NotHyper-474 force-pushed the bugfix/hot-reload-latencystate-crash-fix branch from 21c4b4b to d525a5d Compare May 14, 2025 00:59
@AbnormalPoof AbnormalPoof added type: major bug Involves a major bug, including crashes, softlocks, or issues blocking progression status: pending triage Awaiting review. labels May 14, 2025
@EliteMasterEric EliteMasterEric added the size: tiny A tiny pull request with 4 or fewer changes. label May 14, 2025
@AbnormalPoof AbnormalPoof removed the size: small A small pull request with 10 or fewer changes. label May 14, 2025
@EliteMasterEric EliteMasterEric added size: small A small pull request with 10 or fewer changes. size: tiny A tiny pull request with 4 or fewer changes. and removed size: small A small pull request with 10 or fewer changes. size: tiny A tiny pull request with 4 or fewer changes. labels May 14, 2025
@NotHyper-474 NotHyper-474 force-pushed the bugfix/hot-reload-latencystate-crash-fix branch from d525a5d to a200d65 Compare May 14, 2025 21:59
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: tiny A tiny pull request with 4 or fewer changes. status: pending triage Awaiting review. type: major bug Involves a major bug, including crashes, softlocks, or issues blocking progression
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants