summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatarGravatar David Haywood <hazemamewip@hotmail.com>2017-12-13 22:45:33 +0000
committerGravatarGravatar MetalliC <0vetal0@gmail.com>2017-12-14 00:45:33 +0200
commit8bfcc5c50ed11edb03481cee105696ff874f63d2 (patch) (github)
tree6f1b1a43369a9a9fc84c81c0067c73183b248979
parent6435f7b004ad07842e9a4af20bfacdf60b67e215 (diff)
downloadmame-8bfcc5c50ed11edb03481cee105696ff874f63d2.zip
mame-8bfcc5c50ed11edb03481cee105696ff874f63d2.tar.bz2
pgm2: fix end of sprite list handling (nw) (#2931)
pgm2: fix end of sprite list handling (nw)
-rw-r--r--src/mame/video/pgm2.cpp4
1 files 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;