stop music when entering zonk mode if no bgm

This commit is contained in:
Kistaro Windrider 2024-02-28 23:45:55 -08:00
parent 69e9336d7f
commit 066142e62c
Signed by: kistaro
SSH Key Fingerprint: SHA256:TBE2ynfmJqsAf0CP6gsflA0q5X5wD5fVKWPsZ7eVUg8

View File

@ -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()