Skip to content

Commit 51919d5

Browse files
committed
amiga/agnus_copper.cpp: delay suspend_offset a bit
1 parent 7ce0513 commit 51919d5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/mame/amiga/agnus_copper.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,9 +245,13 @@ void agnus_copper_device::vblank_sync(bool state)
245245

246246
// check current copper cycle at end of scanline
247247
// - auntaadv (gameplay), WAITs with $xxd9
248+
// - gunbee WAITs with $xxe1 at beginning of copper lists, before setting fmode.
249+
// Will desync scrolling by a whole lot if we don't add a +6 here
250+
// cfr. https://eab.abime.net/showpost.php?p=627136&postcount=59
248251
void agnus_copper_device::suspend_offset(int xpos, int hblank_width)
249252
{
250253
m_xpos_state = (xpos == 511) ? 0 : xpos - hblank_width;
254+
m_xpos_state += 6;
251255
// assert(m_xpos_state > 0);
252256
}
253257

0 commit comments

Comments
 (0)