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

Fixed a bug with the intro #73

Merged
merged 1 commit into from
Dec 23, 2023
Merged

Conversation

Mia75owo
Copy link
Contributor

This fixes a bug:

The intro has a counter which is used to fade it out when a key is pressed.
When the counter reaches 0 the intro state gets changed to DONE.
When a key is still pressed, the function EndIntro will be called and it checks if the
intro state is not FADEOUT, but not for DONE, so it will restart the fade out sequence.

To repoduce this just hold a key pressed when ending the intro, as long as the key is pressed
the intro will always restart the fading.

@thrimbor
Copy link
Member

Could you choose a more descriptive commit title please? A title containing only the word "fixed" doesn't really say anything about what the commit does.

added check for IntroStateEnum::DONE
@drfiemost
Copy link
Member

Verified, thanks!

@drfiemost drfiemost merged commit db548fb into HurricanGame:master Dec 23, 2023
6 checks passed
@Mia75owo Mia75owo deleted the fix-intro-bug branch December 23, 2023 17:29
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