diff options
author | angelosa <salese_corp_ltd@email.it> | 2017-08-18 06:28:07 +0200 |
---|---|---|
committer | angelosa <salese_corp_ltd@email.it> | 2017-08-18 06:28:37 +0200 |
commit | 955c226a3a0eb626c95d6190fe3fc31133525ed7 (patch) | |
tree | b84267e2daddb179f138ab30fcbad735f478c973 | |
parent | e3314be6162dc463612321c0a893839e7fc87d67 (diff) |
chanbara.cpp: identified sprite flip X (player sword thrusts) [Angelo Salese]
-rw-r--r-- | src/mame/drivers/chanbara.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/drivers/chanbara.cpp b/src/mame/drivers/chanbara.cpp index d18ae9f683b..7749fce0c9b 100644 --- a/src/mame/drivers/chanbara.cpp +++ b/src/mame/drivers/chanbara.cpp @@ -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) |