-
-
Notifications
You must be signed in to change notification settings - Fork 386
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 Battlefield animations freeze while waiting for Good Luck sound to end #7061
Conversation
…end, don't wait for Good Luck sound when sounds are turned off
Hi @Districh-ru , could you please explain why not playing sound is applicable only for Luck? We have a lot of other sounds during battle which have the same issue. |
Hi, @ihhub, here if we play the Luck sound we wait for it to over even of the rainbow animation is finished. I played a little with disabled sounds and at the 10th speed wile making some tests and had to watch at quickly finished rainbow, waiting for the silenced Luck sound to over. Or you mean to use the same approach (not wait for silecend sound to end) for other battle effects where |
Hi, @Districh-ru |
Hi, @Branikolog!
Yes, you are right. Currently in master build while the rainbow is "going" from the edge of the screen to the creature all animations, including IDLE, are going and when the rainbow animation is finished the whole screen (hero's flag, Genies, Zombie's flies, ...) freezes.
Currently we have only the time of Luck sound and if the Rainbow animation finishes earlier we freeze the screen and wait until the sound is over. fheroes2.2023-05-05.17-22-37-467.mp4Added: fheroes2.2023-05-05.21-54-42-508.1.mp4 |
…h battle speeds when sound is turned off but not longer than Luck sound play time
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks well. Works faster for no sound battle. No more freezes at all during battle.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @Districh-ru , I left one question. Could you please take a look when you have time?
@Districh-ru , thank you very much for this fix! |
This PR fixes the freeze of Battlefield animations after finishing rainbow animation and until Good Lock sound is over.
This PR also removes waiting for Good Luck sound if sound volume is set to 0.