From 05e00b0baf1c590119bac5599a20c9e0b9888e43 Mon Sep 17 00:00:00 2001 From: David Haywood <28625134+DavidHaywood@users.noreply.github.com> Date: Wed, 13 Dec 2017 22:41:06 +0000 Subject: [PATCH] pgm2: fix end of sprite list handling (nw) --- src/mame/video/pgm2.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mame/video/pgm2.cpp b/src/mame/video/pgm2.cpp index dcd56aff64f..88fa0c838fc 100644 --- a/src/mame/video/pgm2.cpp +++ b/src/mame/video/pgm2.cpp @@ -138,9 +138,9 @@ void pgm2_state::draw_sprites(screen_device &screen, const rectangle &cliprect, //printf("frame\n"); - for (int i = 0;i < 0x2000 / 4;i++) + for (int i = 0;i < 0x2000 / 4;i+=4) { - if (spriteram[i] == 0x80000000) + if (spriteram[i+2] & 0x80000000) { endoflist = i; break;