projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9397b5d
)
Only create SoundManager in main menu if USE_SOUND is true
author
PilzAdam
<pilzadam@minetest.net>
Sat, 18 May 2013 11:01:47 +0000
(13:01 +0200)
committer
PilzAdam
<pilzadam@minetest.net>
Sat, 18 May 2013 11:01:47 +0000
(13:01 +0200)
src/main.cpp
patch
|
blob
|
history
diff --git
a/src/main.cpp
b/src/main.cpp
index d28ba9b9dbcddb3e041288406b25e72b9016f2fb..e5c8a55d38571c17683350f913cd1f011ed2de5f 100644
(file)
--- 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;