From 9809d64f17719f5f2303db926e8f67e1ea9da72a Mon Sep 17 00:00:00 2001 From: Angelo Salese Date: Wed, 22 Aug 2012 14:03:07 +0000 Subject: [PATCH] (MESS) Fixed vertical sprite wrap-around in SNES driver [Angelo Salese] --- src/mame/video/snes.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mame/video/snes.c b/src/mame/video/snes.c index 292b2964311..1275c8ff5c5 100644 --- a/src/mame/video/snes.c +++ b/src/mame/video/snes.c @@ -1013,8 +1013,8 @@ void snes_state::snes_update_objects_rto( UINT16 curline ) pal = oam_spritelist[active_sprite].pal; /* Adjust y, if past maximum position (for sprites which overlap between top & bottom) */ - if (y >= 256 * snes_ppu.interlace) - y -= 256 * snes_ppu.interlace; + if (y >= (0x100 - 16) * snes_ppu.interlace) + y -= (0x100) * snes_ppu.interlace; if (curline >= y && curline < (y + (height << 3))) {