stop music when entering zonk mode if no bgm
This commit is contained in:
parent
69e9336d7f
commit
066142e62c
@ -720,7 +720,11 @@ function zonk_mode:av()
|
|||||||
if (type(self.file) == "string") self.file = split(self.file, "\n")
|
if (type(self.file) == "string") self.file = split(self.file, "\n")
|
||||||
if (not self.file) self:nf()
|
if (not self.file) self:nf()
|
||||||
assert(self.file)
|
assert(self.file)
|
||||||
if (self.bgm and (musicmode & 2 == 0)) music(self.bgm,1000,7)
|
if self.bgm and not self.xbgm and (musicmode & 2 == 0) then
|
||||||
|
music(self.bgm,1000,7)
|
||||||
|
else
|
||||||
|
music(-1, 250)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function zonk_mode:onmchg()
|
function zonk_mode:onmchg()
|
||||||
|
Loading…
Reference in New Issue
Block a user