From 4abfb7fb9838fccce93cb83c096e6fdd88d04887 Mon Sep 17 00:00:00 2001 From: JodiJodington <193165323+JodiJodington@users.noreply.github.com> Date: Tue, 31 Dec 2024 15:16:23 -0600 Subject: [PATCH] style changes --- src/ncurses_def.cpp | 2 +- src/sdlsound.cpp | 5 +++-- src/wincurse.cpp | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/ncurses_def.cpp b/src/ncurses_def.cpp index d11432824bd9b..f69d8339451dc 100644 --- a/src/ncurses_def.cpp +++ b/src/ncurses_def.cpp @@ -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 diff --git a/src/sdlsound.cpp b/src/sdlsound.cpp index e310187ad1f47..73fb9739d6106 100644 --- a/src/sdlsound.cpp +++ b/src/sdlsound.cpp @@ -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" ); diff --git a/src/wincurse.cpp b/src/wincurse.cpp index 67028a5282970..ef0fac7120df7 100644 --- a/src/wincurse.cpp +++ b/src/wincurse.cpp @@ -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