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

Fix Timer errors #1

Merged
merged 5 commits into from
Aug 10, 2020
Merged

Fix Timer errors #1

merged 5 commits into from
Aug 10, 2020

Conversation

c-werner
Copy link
Owner

@c-werner c-werner commented Aug 10, 2020

Nodes using the yield-timeout pattern were complaining when their timeouts would fire after they'd already been deleted.
godotengine/godot#24311

This PR changes up that pattern to eliminate the error

Also:

  • Prepends _ to unused variables
  • Uses call_deferred in places that need it

@c-werner c-werner merged commit 191fcc3 into master Aug 10, 2020
@c-werner c-werner deleted the timers branch August 10, 2020 14:00
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