Fixed bug with -ns (no sound) command line switch

git-svn-id: https://openmw.svn.sourceforge.net/svnroot/openmw/trunk@95 ea6a568a-9f4f-0410-981a-c910a81bb256
actorid
nkorslund 16 years ago
parent 6e9de0dc82
commit 40dcc93fe2

@ -99,6 +99,8 @@ struct Music
void setPlaylists(char[][] normal, char[][] battle)
{
if(controlM is null) return;
pushSArray(normal);
pushSArray(battle);
controlM.call("setPlaylists");
@ -124,12 +126,16 @@ struct Music
void updateBuffers()
{
if(controlM is null) return;
foreach(ref MonsterObject b; jukeC)
Jukebox.get(b).updateBuffers();
}
void shutdown()
{
if(controlM is null) return;
foreach(ref MonsterObject b; jukeC)
Jukebox.get(b).shutdown();
}

Loading…
Cancel
Save