From 0d37bbe1326eabe518d407f4a60db29c038c0e9b Mon Sep 17 00:00:00 2001 From: Christian Speckner Date: Wed, 21 Dec 2016 21:54:40 +0100 Subject: [PATCH] Movement from starfield effect does only affect objects less four pixels wide. --- src/emucore/tia/Ball.cxx | 2 +- src/emucore/tia/Missile.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/emucore/tia/Ball.cxx b/src/emucore/tia/Ball.cxx index 9fbcd2419..3527cd287 100644 --- a/src/emucore/tia/Ball.cxx +++ b/src/emucore/tia/Ball.cxx @@ -165,7 +165,7 @@ void Ball::tick(bool isReceivingMclock) myRenderCounter = Count::renderCounterOffset; uInt8 starfieldDelta = (myCounter + 160 - myLastMovementTick) % 4; - if (starfieldEffect && starfieldDelta == 3) myRenderCounter++; + if (starfieldEffect && starfieldDelta == 3 && myWidth < 4) myRenderCounter++; switch (starfieldDelta) { case 3: diff --git a/src/emucore/tia/Missile.cxx b/src/emucore/tia/Missile.cxx index d08a1da05..242ca7c1c 100644 --- a/src/emucore/tia/Missile.cxx +++ b/src/emucore/tia/Missile.cxx @@ -154,7 +154,7 @@ void Missile::tick(bool isReceivingMclock) myRenderCounter = Count::renderCounterOffset; uInt8 starfieldDelta = (myCounter + 160 - myLastMovementTick) % 4; - if (starfieldEffect && starfieldDelta == 3) myRenderCounter++; + if (starfieldEffect && starfieldDelta == 3 && myWidth < 4) myRenderCounter++; switch (starfieldDelta) { case 3: