From 8e64ecd23ad5ac7ef3ce7b22d79615c957469551 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Sun, 16 Oct 2022 00:53:12 -0500 Subject: [PATCH] Virtual Boy: fix sweep not working --- src/engine/platform/vb.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/platform/vb.cpp b/src/engine/platform/vb.cpp index a57d92cdf..e750bd7b5 100644 --- a/src/engine/platform/vb.cpp +++ b/src/engine/platform/vb.cpp @@ -335,7 +335,7 @@ int DivPlatformVB::dispatch(DivCommand c) { chWrite(4,0x07,modulation); if (modulation!=0) { chan[c.chan].envHigh&=~0x70; - chan[c.chan].envHigh|=0x10; + chan[c.chan].envHigh|=0x40; } else { chan[c.chan].envHigh&=~0x70; }