From 066142e62c3ca2018e421466f2733b9f410c9418 Mon Sep 17 00:00:00 2001 From: Kistaro Windrider Date: Wed, 28 Feb 2024 23:45:55 -0800 Subject: [PATCH] stop music when entering zonk mode if no bgm --- vacation.p8 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/vacation.p8 b/vacation.p8 index d42718f..e66c4cf 100644 --- a/vacation.p8 +++ b/vacation.p8 @@ -720,7 +720,11 @@ function zonk_mode:av() if (type(self.file) == "string") self.file = split(self.file, "\n") if (not self.file) self:nf() 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 function zonk_mode:onmchg()