From ba549e1d8ae957133582434437e99df2ea1ff693 Mon Sep 17 00:00:00 2001 From: Christian Speckner Date: Sun, 4 Feb 2018 23:18:30 +0100 Subject: [PATCH] Improve PF collision handling during hblank. --- src/emucore/tia/TIA.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/emucore/tia/TIA.cxx b/src/emucore/tia/TIA.cxx index 21ea48767..889524697 100644 --- a/src/emucore/tia/TIA.cxx +++ b/src/emucore/tia/TIA.cxx @@ -1229,6 +1229,8 @@ void TIA::tickHblank() if (myExtendedHblank) myHstate = HState::frame; break; } + + if (myExtendedHblank && myHctr > 67) myPlayfield.tick(myHctr - 68 - myHctrDelta); } // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -1269,6 +1271,7 @@ void TIA::nextLine() cloneLastLine(); } + myPlayfield.tick(0); myHctr = 0; if (!myMovementInProgress && myLinesSinceChange < 2) myLinesSinceChange++;