Skip to content

Commit

Permalink
Merge pull request CleverRaven#76802 from HadeanLake/ifdefine
Browse files Browse the repository at this point in the history
wrap sound_init_success in #if defined(SDL_SOUND) block
  • Loading branch information
Maleclypse authored Oct 5, 2024
2 parents 1060aa1 + a7a01f3 commit 0c7aa9d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sdltiles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3722,10 +3722,12 @@ void catacurses::init_interface()
color_loader<SDL_Color>().load( windowsPalette );
init_colors();

#if defined(SDL_SOUND)
// initialize sound set
if( sound_init_success ) {
load_soundset();
}
#endif // SOUND

font = std::make_unique<FontFallbackList>( renderer, format, fl.fontwidth, fl.fontheight,
windowsPalette, fl.typeface, fl.fontsize, fl.fontblending );
Expand Down

0 comments on commit 0c7aa9d

Please sign in to comment.