Skip to content

Commit

Permalink
undrfire, need sprite lag
Browse files Browse the repository at this point in the history
  • Loading branch information
dinkc64 committed Feb 14, 2025
1 parent ae41c38 commit 94657a5
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/burn/drv/taito/d_undrfire.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,7 @@ static void DrvPaletteUpdate()

static void draw_sprites(INT32 *primasks,INT32 x_offs,INT32 y_offs)
{
UINT32 *spriteram32 = (UINT32*)TaitoSpriteRam;
UINT32 *spriteram32 = (UINT32*)TaitoSpriteRamBuffered3;
UINT16 *spritemap = (UINT16*)TaitoSpriteMapRom;
INT32 offs, tilenum, color, flipx, flipy;
INT32 x, y, priority, dblsize, curx, cury;
Expand Down Expand Up @@ -1193,11 +1193,9 @@ static INT32 DrvFrame()
BurnDrvRedraw();
}

if (has_subcpu) { // cbombers sprites 3 frames ahead of tiles
memcpy(TaitoSpriteRamBuffered3, TaitoSpriteRamBuffered2, 0x4000);
memcpy(TaitoSpriteRamBuffered2, TaitoSpriteRamBuffered, 0x4000);
memcpy(TaitoSpriteRamBuffered, TaitoSpriteRam, 0x4000);
}
memcpy(TaitoSpriteRamBuffered3, TaitoSpriteRamBuffered2, 0x4000);
memcpy(TaitoSpriteRamBuffered2, TaitoSpriteRamBuffered, 0x4000);
memcpy(TaitoSpriteRamBuffered, TaitoSpriteRam, 0x4000);

return 0;
}
Expand Down

0 comments on commit 94657a5

Please sign in to comment.