fix resume() discarding changed music volume
This commit is contained in:
@@ -814,7 +814,9 @@
|
|||||||
(unless waitForEnd (cc))))
|
(unless waitForEnd (cc))))
|
||||||
|
|
||||||
(method :Void changeSongVolume [:Float volumeMod :Continuation cc]
|
(method :Void changeSongVolume [:Float volumeMod :Continuation cc]
|
||||||
(set music.volume (* volumeMod musicVolume))
|
(let [[fade oldMod] (dictGet currentSoundVolumes music)]
|
||||||
|
(set music.volume (* fade volumeMod musicVolume))
|
||||||
|
(dictSet currentSoundVolumes music [fade volumeMod]))
|
||||||
(cc))
|
(cc))
|
||||||
|
|
||||||
(method :Void stopSong []
|
(method :Void stopSong []
|
||||||
|
Reference in New Issue
Block a user