Skip to content

[Bug]: Sprite compatibility broken for objects with linked sprites #3434

@Hypernoot

Description

@Hypernoot

SuperTux Version

0.7.0-dev (latest git)

System Information

unimportant

Expected Behavior

When a linked sprite is not defined in the sprite file, a default one should be loaded. This will be the case when a legacy sprite is used.

Actual Behavior

Instead, the "missing texture" sprite is loaded.

Steps To Reproduce Actual Behavior

  1. Remove the linked sprites from any object which uses them.
  2. See that the game didn't fallback for any kind of default value.

Additional Information

The importance is questionable, as the new textures may not fit the legacy sprites anyway. But we should at least implement this for the future releases, so sprites won't break every time a linked sprite is introduced to an object.

Guidelines For Reporting Issues

  • I have read https://github.com/SuperTux/supertux/blob/master/CONTRIBUTING.md#bug-reports.
  • I have verified this isn't an issue that's already been reported.
  • I have verified this isn't a discussion, or an issue about a crash or a feature request, but rather an actual bug ─ that is, the game did something not intended.
  • I have verified this issue is not about wrong translations (use Transifex for those), or anything unsupported (e.g. third-party add-ons).
  • In this report, I have only included details about one (1) bug.
  • If I make a mistake while submitting this report, I agree to use the "Edit" feature to correct it, instead of closing this issue and opening a new one.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions