From 53ad1c93e6f58c339259d8e8b592ecb5344a321b Mon Sep 17 00:00:00 2001 From: cam900 Date: Wed, 16 Mar 2022 11:40:10 +0900 Subject: [PATCH] Reduce line --- src/engine/platform/x1_010.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/engine/platform/x1_010.cpp b/src/engine/platform/x1_010.cpp index 47c8a10af..cec8659b4 100644 --- a/src/engine/platform/x1_010.cpp +++ b/src/engine/platform/x1_010.cpp @@ -339,11 +339,7 @@ void DivPlatformX1_010::updateEnvelope(int ch) { } chWrite(ch,5,0x10|(ch&0xf)); } else { - if (isMuted[ch]) { - chWrite(ch,1,0); - } else { - chWrite(ch,1,(chan[ch].lvol<<4)|chan[ch].rvol); - } + chWrite(ch,1,isMuted[ch]?0:((chan[ch].lvol<<4)|chan[ch].rvol)); } }