diff options
| author | 2022-11-05 15:03:17 +0100 | |
|---|---|---|
| committer | 2022-11-05 15:03:17 +0100 | |
| commit | 54ca62e3f3c6907be0915e9eb5fe006a95dd1a1e (patch) | |
| tree | 9a54acadc73b862fe62593a790180f5352949d12 | |
| parent | 156e64d1629523b19d7fc6681aa62217c73028e3 (diff) | |
bestleag: no need to calc exact spriteram end
| -rw-r--r-- | src/mame/jaleco/bestleag.cpp | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/src/mame/jaleco/bestleag.cpp b/src/mame/jaleco/bestleag.cpp index 88523659dc9..f055dd87ca9 100644 --- a/src/mame/jaleco/bestleag.cpp +++ b/src/mame/jaleco/bestleag.cpp @@ -135,23 +135,16 @@ void bestleag_state::video_start() m_fg_tilemap->set_transparent_pen(15); } -/* -Note: sprite chip is different than the other Big Striker sets and they - include several similiarities with other Playmark games (including - the sprite end code and the data being offset (i.e. spriteram starting from 0x16/2)) -*/ void bestleag_state::draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect) { - int start = 0x16/2; - int end = m_spriteram.length() - (-start & 3); - /* - Sprites are the same to sslam, but using 16x16 sprites instead of 8x8 + Note: sprite chip is different than the other Big Striker sets and they + include several similiarities with other Playmark games (including + the sprite end code and the data being offset (i.e. spriteram starting from 0x16/2)) */ - - for (int offs = start; offs < end; offs += 4) + for (int offs = 0x16/2; offs < m_spriteram.length() - 3; offs += 4) { int code = m_spriteram[offs+3] & 0xfff; int color = (m_spriteram[offs+2] & 0xf000) >> 12; |
