mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-10 15:39:02 +00:00
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
This commit is contained in:
parent
6e9de0dc82
commit
40dcc93fe2
@ -99,6 +99,8 @@ struct Music
|
|||||||
|
|
||||||
void setPlaylists(char[][] normal, char[][] battle)
|
void setPlaylists(char[][] normal, char[][] battle)
|
||||||
{
|
{
|
||||||
|
if(controlM is null) return;
|
||||||
|
|
||||||
pushSArray(normal);
|
pushSArray(normal);
|
||||||
pushSArray(battle);
|
pushSArray(battle);
|
||||||
controlM.call("setPlaylists");
|
controlM.call("setPlaylists");
|
||||||
@ -124,12 +126,16 @@ struct Music
|
|||||||
|
|
||||||
void updateBuffers()
|
void updateBuffers()
|
||||||
{
|
{
|
||||||
|
if(controlM is null) return;
|
||||||
|
|
||||||
foreach(ref MonsterObject b; jukeC)
|
foreach(ref MonsterObject b; jukeC)
|
||||||
Jukebox.get(b).updateBuffers();
|
Jukebox.get(b).updateBuffers();
|
||||||
}
|
}
|
||||||
|
|
||||||
void shutdown()
|
void shutdown()
|
||||||
{
|
{
|
||||||
|
if(controlM is null) return;
|
||||||
|
|
||||||
foreach(ref MonsterObject b; jukeC)
|
foreach(ref MonsterObject b; jukeC)
|
||||||
Jukebox.get(b).shutdown();
|
Jukebox.get(b).shutdown();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user