mirror of
https://github.com/holub/mame
synced 2025-07-03 00:56:03 +03:00
unclear comments
(and in x board case, height is always>0)
This commit is contained in:
parent
af2262fdba
commit
66a083daaf
@ -194,7 +194,7 @@ void sega_hangon_sprite_device::draw(bitmap_ind16 &bitmap, const rectangle &clip
|
|||||||
// initialize the end address to the start address
|
// initialize the end address to the start address
|
||||||
data[7] = addr;
|
data[7] = addr;
|
||||||
|
|
||||||
// if hidden, or top greater than/equal to bottom, or invalid bank, punt
|
// if top greater than/equal to bottom, or invalid bank, punt
|
||||||
if (top >= bottom || bank == 255)
|
if (top >= bottom || bank == 255)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
@ -373,7 +373,7 @@ void sega_sharrier_sprite_device::draw(bitmap_ind16 &bitmap, const rectangle &cl
|
|||||||
// initialize the end address to the start address
|
// initialize the end address to the start address
|
||||||
data[7] = addr;
|
data[7] = addr;
|
||||||
|
|
||||||
// if hidden, or top greater than/equal to bottom, or invalid bank, punt
|
// if top greater than/equal to bottom, or invalid bank, punt
|
||||||
if (top >= bottom || bank == 255)
|
if (top >= bottom || bank == 255)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
@ -553,7 +553,7 @@ void sega_sys16a_sprite_device::draw(bitmap_ind16 &bitmap, const rectangle &clip
|
|||||||
// initialize the end address to the start address
|
// initialize the end address to the start address
|
||||||
data[7] = addr;
|
data[7] = addr;
|
||||||
|
|
||||||
// if hidden, or top greater than/equal to bottom, or invalid bank, punt
|
// if top greater than/equal to bottom, or invalid bank, punt
|
||||||
if (top >= bottom || bank == 255)
|
if (top >= bottom || bank == 255)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
@ -735,7 +735,7 @@ void bootleg_sys16a_sprite_device::draw(bitmap_ind16 &bitmap, const rectangle &c
|
|||||||
UINT16 &data7 = data[m_addrmap[7]];
|
UINT16 &data7 = data[m_addrmap[7]];
|
||||||
data7 = addr;
|
data7 = addr;
|
||||||
|
|
||||||
// if hidden, or top greater than/equal to bottom, or invalid bank, punt
|
// if top greater than/equal to bottom, or invalid bank, punt
|
||||||
if (top >= bottom || bank == 255)
|
if (top >= bottom || bank == 255)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
@ -1134,8 +1134,8 @@ void sega_outrun_sprite_device::draw(bitmap_ind16 &bitmap, const rectangle &clip
|
|||||||
// initialize the end address to the start address
|
// initialize the end address to the start address
|
||||||
data[7] = addr;
|
data[7] = addr;
|
||||||
|
|
||||||
// if hidden, or top greater than/equal to bottom, or invalid bank, punt
|
// if hidden, punt
|
||||||
if (hide || height == 0)
|
if (hide)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
// clamp to within the memory region size
|
// clamp to within the memory region size
|
||||||
@ -1325,7 +1325,7 @@ void sega_yboard_sprite_device::draw(bitmap_ind16 &bitmap, const rectangle &clip
|
|||||||
visited[next] = 1;
|
visited[next] = 1;
|
||||||
next = data[7] & 0xfff;
|
next = data[7] & 0xfff;
|
||||||
|
|
||||||
// if hidden, or top greater than/equal to bottom, or invalid bank, punt
|
// if hidden, or invalid height, punt
|
||||||
if (hide || height == 0)
|
if (hide || height == 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user