chanbara.cpp: identified sprite flip X (player sword thrusts) [Angelo Salese]

This commit is contained in:
angelosa 2017-08-18 06:28:07 +02:00
parent e3314be616
commit 955c226a3a

View File

@ -183,7 +183,7 @@ void chanbara_state::draw_sprites( bitmap_ind16 &bitmap, const rectangle &clipre
int attr = m_spriteram[offs + 0];
int code = m_spriteram[offs + 1];
int color = m_spriteram[offs + 0x80] & 0x1f;
int flipx = 0;
int flipx = attr & 4;
int flipy = attr & 2;
int sx = 240 - m_spriteram[offs + 3];
int sy = 232 - m_spriteram[offs + 2];
@ -193,7 +193,7 @@ void chanbara_state::draw_sprites( bitmap_ind16 &bitmap, const rectangle &clipre
if (m_spriteram[offs + 0x80] & 0x10) code += 0x200;
if (m_spriteram[offs + 0x80] & 0x20) code += 0x400;
if (m_spriteram[offs + 0x80] & 0x40) code += 0x100;
if (attr & 0x10)
{
if (!flipy)