Fixes ambience sound preference

This commit is contained in:
Artorp
2015-02-10 07:32:14 +01:00
parent 8388cb49a1
commit d708d53a6c
+1 -1
View File
@@ -355,7 +355,7 @@
thunk(L)
// Ambience goes down here -- make sure to list each area seperately for ease of adding things in later, thanks! Note: areas adjacent to each other should have the same sounds to prevent cutoff when possible.- LastyScratch
if(L && L.client && (L.client.prefs.toggles & SOUND_AMBIENCE))
if(L && L.client && (L.client.prefs.sound & SOUND_AMBIENCE))
if(!L.client.ambience_playing)
L.client.ambience_playing = 1
L << sound('sound/ambience/shipambience.ogg', repeat = 1, wait = 0, volume = 35, channel = 2)