Only create SoundManager in main menu if USE_SOUND is true
authorPilzAdam <pilzadam@minetest.net>
Sat, 18 May 2013 11:01:47 +0000 (13:01 +0200)
committerPilzAdam <pilzadam@minetest.net>
Sat, 18 May 2013 11:01:47 +0000 (13:01 +0200)
src/main.cpp

index d28ba9b9dbcddb3e041288406b25e72b9016f2fb..e5c8a55d38571c17683350f913cd1f011ed2de5f 100644 (file)
@@ -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;