From b77f1e69e36a1cdbb4a040cba5669725e51c5af8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Strohh=C3=A4cker?= Date: Fri, 4 Jul 2008 19:15:53 +0000 Subject: [PATCH] fix opl3 4op connection mode selection Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3175 --- src/hardware/ymf262.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hardware/ymf262.c b/src/hardware/ymf262.c index 2d9bec26..1c297432 100644 --- a/src/hardware/ymf262.c +++ b/src/hardware/ymf262.c @@ -2103,7 +2103,7 @@ static void OPL3WriteReg(OPL3 *chip, int r, int v) case 9: case 10: case 11: if (CH->extended) { - UINT8 conn = (CH->SLOT[SLOT1].CON<<1) || ((CH+3)->SLOT[SLOT1].CON<<0); + UINT8 conn = (CH->SLOT[SLOT1].CON<<1) | ((CH+3)->SLOT[SLOT1].CON<<0); switch(conn) { case 0: @@ -2155,7 +2155,7 @@ static void OPL3WriteReg(OPL3 *chip, int r, int v) case 12: case 13: case 14: if ((CH-3)->extended) { - UINT8 conn = ((CH-3)->SLOT[SLOT1].CON<<1) || (CH->SLOT[SLOT1].CON<<0); + UINT8 conn = ((CH-3)->SLOT[SLOT1].CON<<1) | (CH->SLOT[SLOT1].CON<<0); switch(conn) { case 0: