Skip to content

Commit

Permalink
style changes
Browse files Browse the repository at this point in the history
  • Loading branch information
JodiJodington authored and DaQueenJodi committed Dec 31, 2024
1 parent bf15eef commit 4abfb7f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/ncurses_def.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ void catacurses::init_interface()
#if defined(SDL_SOUND)
initSDLAudioOnly();
init_sound();
if (sound_init_success) {
if( sound_init_success ) {
load_soundset();
}
#endif
Expand Down
5 changes: 3 additions & 2 deletions src/sdlsound.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -913,8 +913,9 @@ void load_soundset()
}

// capitalized to mirror cata_tiles::InitSDL()
void initSDLAudioOnly() {
const int ret = SDL_Init(SDL_INIT_AUDIO);
void initSDLAudioOnly()
{
const int ret = SDL_Init( SDL_INIT_AUDIO );
throwErrorIf( ret != 0, "SDL_Init failed" );
if( atexit( SDL_Quit ) ) {
debugmsg( "atexit failed to register SDL_Quit" );
Expand Down
2 changes: 1 addition & 1 deletion src/wincurse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ void catacurses::init_interface()
#if defined(SDL_SOUND)
initSDLAudioOnly();
init_sound();
if (sound_init_success) {
if( sound_init_success ) {
load_soundset();
}
#endif
Expand Down

0 comments on commit 4abfb7f

Please sign in to comment.