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
This commit is contained in:
ajrhacker 2021-07-07 22:28:43 -04:00 committed by GitHub
commit b6a2a4e902
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);