summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author ajrhacker <ajrhacker@users.noreply.github.com>2021-07-07 22:28:43 -0400
committer GitHub <noreply@github.com>2021-07-07 22:28:43 -0400
commitb6a2a4e902920818b2e6870803ffe992814eb34d (patch)
tree78995c951ee3fb892782f8b2c25cae172a468b2e
parent45bcf05ac094c3e3cf472ea5a0e1a28196c5dc58 (diff)
parent344226efd77f62b14bfc660af9614406022e0606 (diff)
Merge pull request #8268 from DavidHaywood/020721
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);