From 7c28d4ca68b2c61bc32267b85cdef5014488dfbd Mon Sep 17 00:00:00 2001 From: Shlomi Fish Date: Mon, 29 Nov 2021 07:23:26 +0200 Subject: [PATCH] fix issue#229: restore old boolean behavior See: https://github.com/shlomif/PySolFC/pull/230#issuecomment-981240814 --- pysollib/pysolaudio.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pysollib/pysolaudio.py b/pysollib/pysolaudio.py index 43187158..93b681fb 100644 --- a/pysollib/pysolaudio.py +++ b/pysollib/pysolaudio.py @@ -606,8 +606,8 @@ class PyGameAudioClient(AbstractAudioClient): th.start() def updateSettings(self): - if (not ((self.app.opt.sound or self.app.opt.music) and - self.app.opt.sound_music_volume > 0)): + if (not self.app.opt.sound or not self.app.opt.music or + self.app.opt.sound_music_volume == 0): if self.music: self.music.stop() self.music = None