Skip to content

Commit 090e824

Browse files
authored
Merge pull request #276 from Crystalwarrior/bugfix/sprite-freedom
Allow non-png static image lookups
2 parents 9f4487d + 18a9bcf commit 090e824

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/aocharmovie.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ void AOCharMovie::load_image(QString p_char, QString p_emote,
3535
ao_app->get_image_suffix(ao_app->get_character_path(
3636
p_char, emote_prefix + "/" +
3737
p_emote)), // Path check if it's categorized into a folder
38-
ao_app->get_character_path(
39-
p_char, p_emote + ".png"), // Non-animated path if emote_prefix fails
38+
ao_app->get_image_suffix(ao_app->get_character_path(
39+
p_char, p_emote)), // Just use the non-prefixed image, animated or not
4040
ao_app->get_image_suffix(
4141
ao_app->get_theme_path("placeholder")), // Theme placeholder path
4242
ao_app->get_image_suffix(ao_app->get_default_theme_path(

0 commit comments

Comments
 (0)