From: PilzAdam Date: Sat, 18 May 2013 11:01:47 +0000 (+0200) Subject: Only create SoundManager in main menu if USE_SOUND is true X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=714ecc5e27c2c01b0f3ce0ba626abb6baca9af13;p=zefram%2Fminetest%2Fminetest_engine.git Only create SoundManager in main menu if USE_SOUND is true --- diff --git a/src/main.cpp b/src/main.cpp index d28ba9b9..e5c8a55d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1845,7 +1845,9 @@ int main(int argc, char *argv[]) MenuMusicFetcher soundfetcher; ISoundManager *sound = NULL; +#if USE_SOUND sound = createOpenALSoundManager(&soundfetcher); +#endif if(!sound) sound = &dummySoundManager; SimpleSoundSpec spec;