From 14ebb9772ab74956bcf325660b7cd894641be1df Mon Sep 17 00:00:00 2001 From: Christian Speckner Date: Thu, 5 Jan 2017 21:07:41 +0100 Subject: [PATCH] Fix RESM during draw counter decode. --- src/emucore/tia/Missile.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/emucore/tia/Missile.cxx b/src/emucore/tia/Missile.cxx index 7be0140f0..7b9ef1099 100644 --- a/src/emucore/tia/Missile.cxx +++ b/src/emucore/tia/Missile.cxx @@ -70,6 +70,9 @@ void Missile::hmm(uInt8 value) void Missile::resm(uInt8 counter) { myCounter = counter; + + if (myIsRendering && myRenderCounter < 0) + myRenderCounter = Count::renderCounterOffset + (counter - 157); } // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -