From 57186c3c14664c133d8a9f86e9a852729451e59f Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Tue, 19 Jul 2022 16:37:13 -0400 Subject: [PATCH] Don't limit sprite fetch area; add further commentary. --- Machines/Amiga/Chipset.cpp | 2 +- Machines/Amiga/Sprites.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Machines/Amiga/Chipset.cpp b/Machines/Amiga/Chipset.cpp index 6592469b1..46abacfab 100644 --- a/Machines/Amiga/Chipset.cpp +++ b/Machines/Amiga/Chipset.cpp @@ -610,7 +610,7 @@ template bool Chipset::perform_cycle() { } if constexpr (cycle >= 0x16 && cycle < 0x36) { - if((dma_control_ & SpritesFlag) == SpritesFlag && y_ >= vertical_blank_height_) { + if((dma_control_ & SpritesFlag) == SpritesFlag) { constexpr auto sprite_id = (cycle - 0x16) >> 2; static_assert(sprite_id >= 0 && sprite_id < std::tuple_size::value); diff --git a/Machines/Amiga/Sprites.cpp b/Machines/Amiga/Sprites.cpp index d908c6b6f..8d3a16afc 100644 --- a/Machines/Amiga/Sprites.cpp +++ b/Machines/Amiga/Sprites.cpp @@ -83,7 +83,7 @@ bool Sprite::advance_dma(int offset, int y) { } } else { visible |= y == v_start_; - if(!visible) return false; + if(!visible) return false; // Act as if there wasn't a fetch. // Write colour word 1, then colour word 0; 0 is the word that 'arms' // the sprite (i.e. makes it visible).