summaryrefslogtreecommitdiff
path: root/opl/examples
diff options
context:
space:
mode:
authorSimon Howard2009-05-28 18:34:05 +0000
committerSimon Howard2009-05-28 18:34:05 +0000
commitb695843cc549e3de4845e340c611efb0ae98866c (patch)
treeb6c921a9066aa4261f4ff3897e6ffa92046d0a5a /opl/examples
parent223879d264009f4678803651f885214f84606cb7 (diff)
downloadchocolate-doom-b695843cc549e3de4845e340c611efb0ae98866c.tar.gz
chocolate-doom-b695843cc549e3de4845e340c611efb0ae98866c.tar.bz2
chocolate-doom-b695843cc549e3de4845e340c611efb0ae98866c.zip
Fix OPL detect.
Subversion-branch: /branches/opl-branch Subversion-revision: 1536
Diffstat (limited to 'opl/examples')
-rw-r--r--opl/examples/droplay.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/opl/examples/droplay.c b/opl/examples/droplay.c
index 7cd595e9..af1a59d9 100644
--- a/opl/examples/droplay.c
+++ b/opl/examples/droplay.c
@@ -78,7 +78,7 @@ int DetectOPL(void)
WriteReg(OPL_REG_TIMER_CTRL, 0x60);
WriteReg(OPL_REG_TIMER_CTRL, 0x80);
- return val1 != 0 || val2 != 0xc0;
+ return val1 == 0 && val2 == 0xc0;
}
void Init(void)