From 158681c7380ad9a163a150954753c07e08668430 Mon Sep 17 00:00:00 2001 From: shashclp Date: Sun, 2 Mar 2008 23:36:00 +0000 Subject: [PATCH] =?UTF-8?q?-=20Added=20NHerv=EF=BF=BD=20command=20fix=20on?= =?UTF-8?q?=20NOP's.=20The=20first=20fixes,=20at=20least,=20"Rayman=20Ravi?= =?UTF-8?q?ng=20Rabbids=202".=20-=20Added=20my=20fix=20to=20avoid=20clInd?= =?UTF-8?q?=20going=20<=200=20without=20notice,=20fixes=20"Mario=20&=20Lui?= =?UTF-8?q?gi=20-=20Partners=20in=20Time"=20apparent=20freeze=20=20when=20?= =?UTF-8?q?going=20in=20battle?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- desmume/src/windows/OGLRender.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/desmume/src/windows/OGLRender.c b/desmume/src/windows/OGLRender.c index 425436f13..e63fb8987 100644 --- a/desmume/src/windows/OGLRender.c +++ b/desmume/src/windows/OGLRender.c @@ -1364,12 +1364,14 @@ void NDS_glCallList(unsigned long v) { case 0x0: { - --clInd; + if (clInd > 0) + { + --clInd; + clCmd >>= 8; + continue; + } - if (!clInd) - break; - - continue; + break; } case 0x11 :