mirror of
https://github.com/holub/mame
synced 2025-05-20 20:58:51 +03:00
fix sprite overflow regression
This commit is contained in:
parent
6b01f43a07
commit
2c4e0ef336
@ -475,8 +475,7 @@ void tms9928a_device::device_timer(emu_timer &timer, device_timer_id id, int par
|
|||||||
{
|
{
|
||||||
int spr_y = m_vMem[ m_spriteattribute + sprattr + 0 ];
|
int spr_y = m_vMem[ m_spriteattribute + sprattr + 0 ];
|
||||||
|
|
||||||
if (!fifth_encountered)
|
m_FifthSprite = sprattr / 4;
|
||||||
m_FifthSprite = sprattr / 4;
|
|
||||||
|
|
||||||
/* Stop processing sprites */
|
/* Stop processing sprites */
|
||||||
if ( spr_y == 208 )
|
if ( spr_y == 208 )
|
||||||
@ -499,8 +498,11 @@ void tms9928a_device::device_timer(emu_timer &timer, device_timer_id id, int par
|
|||||||
num_sprites++;
|
num_sprites++;
|
||||||
|
|
||||||
/* Fifth sprite encountered? */
|
/* Fifth sprite encountered? */
|
||||||
if( num_sprites == 5 )
|
if ( num_sprites == 5 )
|
||||||
|
{
|
||||||
fifth_encountered = true;
|
fifth_encountered = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
if ( sprite_mag )
|
if ( sprite_mag )
|
||||||
pataddr += ( ( ( y - spr_y ) & 0x1F ) >> 1 );
|
pataddr += ( ( ( y - spr_y ) & 0x1F ) >> 1 );
|
||||||
|
Loading…
Reference in New Issue
Block a user