From 54ca62e3f3c6907be0915e9eb5fe006a95dd1a1e Mon Sep 17 00:00:00 2001 From: hap Date: Sat, 5 Nov 2022 15:03:17 +0100 Subject: bestleag: no need to calc exact spriteram end --- src/mame/jaleco/bestleag.cpp | 15 ++++----------- 1 file 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; -- cgit v1.2.3