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 sprite fallback issues #2551

Merged
merged 1 commit into from
Jul 21, 2023

Conversation

Vankata453
Copy link
Member

@Vankata453 Vankata453 commented Jul 21, 2023

Previously, missing .sprite files, when attempted to be loaded, would immediately close the game, due to throwing fatal errors. The issue is now fixed. Such errors are caught, and the fallback/dummy texture takes the sprite's place.

Other than .sprite file load errors being caught, single-image sprites also throw an error, which is later caught, when the chosen image fails to load.

MovingSprites now return to their default sprite, if a custom-set sprite fails to load.

Fixes #2341. Closes #2250.

Previously, missing ".sprite" files, when attempted to be loaded, would immeditately close the game, due to throwing fatal errors.
The issue is now fixed. Such errors are caught, and the fallback/dummy texture takes the sprite's place.

Other than ".sprite" file load errors being caught, single-image sprites also throw an error, when the chosen image fails to load.

`MovingSprite`s now return to their default sprite, if a custom-set sprite fails to load.
@Vankata453 Vankata453 added category:code status:needs-review Work needs to be reviewed by other people type:bugfix Pull Requests that fix bugs. labels Jul 21, 2023
@Vankata453 Vankata453 merged commit 47f349f into SuperTux:master Jul 21, 2023
22 of 36 checks passed
@Vankata453 Vankata453 deleted the sprite-fallback-fixes branch July 21, 2023 19:12
@mrkubax10 mrkubax10 removed the status:needs-review Work needs to be reviewed by other people label Jul 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:code type:bugfix Pull Requests that fix bugs.
Projects
None yet
3 participants