diff options
Diffstat (limited to 'src/mame/video/timelimt.cpp')
-rw-r--r-- | src/mame/video/timelimt.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mame/video/timelimt.cpp b/src/mame/video/timelimt.cpp index d0b03177d55..225ecdb1e8d 100644 --- a/src/mame/video/timelimt.cpp +++ b/src/mame/video/timelimt.cpp @@ -87,6 +87,9 @@ void timelimt_state::video_start() m_fg_tilemap->set_transparent_pen(0); + m_scrollx = 0; + m_scrolly = 0; + save_item(NAME(m_scrollx)); save_item(NAME(m_scrolly)); } @@ -125,7 +128,7 @@ void timelimt_state::scroll_y_w(uint8_t data) void timelimt_state::draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect) { - for( int offs = m_spriteram.bytes(); offs >= 0; offs -= 4 ) + for( int offs = m_spriteram.bytes() - 4; offs >= 0; offs -= 4 ) { int sy = 240 - m_spriteram[offs]; int sx = m_spriteram[offs+3]; |