diff options
author | Robbbert <Robbbert@users.noreply.github.com> | 2021-03-03 15:09:17 +1100 |
---|---|---|
committer | Robbbert <Robbbert@users.noreply.github.com> | 2021-03-03 15:09:17 +1100 |
commit | 33e8282773db652109988f25b61040d04053b627 (patch) | |
tree | 1f289627e981d1f042b8e69b432ff8b9ffe2e62a /src | |
parent | 070e50bf82833ff12652bef0b7d81e961cfc1f11 (diff) |
1942p: Coverity 180504 (unused code)
Diffstat (limited to 'src')
-rw-r--r-- | src/mame/video/1942.cpp | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/src/mame/video/1942.cpp b/src/mame/video/1942.cpp index b67b08a6e40..926bc59d0c3 100644 --- a/src/mame/video/1942.cpp +++ b/src/mame/video/1942.cpp @@ -310,31 +310,16 @@ void _1942p_state::draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect) int sx = m_spriteram[offs + 2] - 0x10 * (m_spriteram[offs + 3] & 0x10); int sy = m_spriteram[offs + 1]; - int dir; if (flip_screen()) { sx = 240 - sx; - dir = -1; } else { sy = 240 - sy; - dir = 1; } - /* handle double / quadruple height */ - int i = (m_spriteram[offs + 3] & 0xc0) >> 6; - if (i == 2) - i = 3; - - i = 0; - - do - { - m_gfxdecode->gfx(2)->transpen(bitmap, cliprect, code + i, col, flip_screen(), flip_screen(), sx, sy + 16 * i * dir, 15); - - i--; - } while (i >= 0); + m_gfxdecode->gfx(2)->transpen(bitmap, cliprect, code, col, flip_screen(), flip_screen(), sx, sy, 15); } } |