mirror of
https://github.com/holub/mame
synced 2025-07-05 18:08:04 +03:00
taito/rbisland.cpp: More const, fixed commented code.
This commit is contained in:
parent
b4be277bc7
commit
f7039dfcf1
@ -486,8 +486,6 @@ void jumping_state::machine_start()
|
||||
|
||||
uint32_t jumping_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
|
||||
{
|
||||
int sprite_colbank = (m_sprite_ctrl & 0xe0) >> 1;
|
||||
|
||||
m_pc080sn->tilemap_update();
|
||||
|
||||
// Override values, or foreground layer is in wrong position
|
||||
@ -498,9 +496,10 @@ uint32_t jumping_state::screen_update(screen_device &screen, bitmap_ind16 &bitma
|
||||
m_pc080sn->tilemap_draw(screen, bitmap, cliprect, 0, TILEMAP_DRAW_OPAQUE, 0);
|
||||
|
||||
// Draw the sprites. 128 sprites in total
|
||||
int const sprite_colbank = (m_sprite_ctrl & 0xe0) >> 1;
|
||||
for (int offs = m_spriteram.bytes() / 2 - 8; offs >= 0; offs -= 8)
|
||||
{
|
||||
int tile = m_spriteram[offs];
|
||||
int const tile = m_spriteram[offs];
|
||||
if (tile < m_gfxdecode->gfx(1)->elements())
|
||||
{
|
||||
int sy = ((m_spriteram[offs + 1] - 0xfff1) ^ 0xffff) & 0x1ff;
|
||||
@ -508,8 +507,8 @@ uint32_t jumping_state::screen_update(screen_device &screen, bitmap_ind16 &bitma
|
||||
int sx = (m_spriteram[offs + 2] - 0x38) & 0x1ff;
|
||||
if (sx > 400) sx = sx - 512;
|
||||
|
||||
int data1 = m_spriteram[offs + 3];
|
||||
int color = (m_spriteram[offs + 4] & 0x0f) | sprite_colbank;
|
||||
int const data1 = m_spriteram[offs + 3];
|
||||
int const color = (m_spriteram[offs + 4] & 0x0f) | sprite_colbank;
|
||||
|
||||
m_gfxdecode->gfx(0)->transpen(bitmap, cliprect,
|
||||
tile,
|
||||
@ -522,7 +521,7 @@ uint32_t jumping_state::screen_update(screen_device &screen, bitmap_ind16 &bitma
|
||||
m_pc080sn->tilemap_draw(screen, bitmap, cliprect, 1, 0, 0);
|
||||
|
||||
#if 0
|
||||
popmessage(buf,"sprite_ctrl: %04x", m_sprite_ctrl);
|
||||
popmessage("sprite_ctrl: %04x", m_sprite_ctrl);
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
@ -786,7 +785,7 @@ void rbisland_state::machine_start()
|
||||
{
|
||||
base_state::machine_start();
|
||||
|
||||
uint8_t *rom = memregion("audiocpu")->base();
|
||||
uint8_t *const rom = memregion("audiocpu")->base();
|
||||
membank("soundbank")->configure_entries(0, 4, &rom[0xc000], 0x4000);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user