summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author DavidHaywood <28625134+DavidHaywood@users.noreply.github.com>2021-07-07 11:27:05 +0100
committer DavidHaywood <28625134+DavidHaywood@users.noreply.github.com>2021-07-07 11:27:05 +0100
commit344226efd77f62b14bfc660af9614406022e0606 (patch)
tree9fc7c11f287bea919aabe318288e529b4f2970dc
parentb0bc45a6a419de726a060b3b350065b156b35977 (diff)
namcos2_sprite.cpp - use extra bit on x coordinate, prevents large oversized bad sprites in finallap2/3 and suzuka 8 hours
-rw-r--r--src/mame/video/namcos2_sprite.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mame/video/namcos2_sprite.cpp b/src/mame/video/namcos2_sprite.cpp
index b7ed3f38858..174833c3c86 100644
--- a/src/mame/video/namcos2_sprite.cpp
+++ b/src/mame/video/namcos2_sprite.cpp
@@ -274,7 +274,7 @@ void namcos2_sprite_device::draw_sprites(screen_device &screen, bitmap_ind16 &bi
{
const u32 color = (word3 >> 4) & 0x000f;
const int ypos = (0x1ff - (word0 & 0x01ff)) - 0x50 + 0x02;
- const int xpos = (offset4 & 0x03ff) - 0x50 + 0x07;
+ const int xpos = (offset4 & 0x07ff) - 0x50 + 0x07;
const bool flipy = word1 & 0x8000;
const bool flipx = word1 & 0x4000;
const int scalex = (sizex << 16) / (is_32 ? 0x20 : 0x10);