summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author R. Belmont <rb6502@users.noreply.github.com>2019-06-16 17:48:32 -0400
committer GitHub <noreply@github.com>2019-06-16 17:48:32 -0400
commitf9733332fce1a8eb6defa7eea61d917b9af969e9 (patch)
tree0912bc53d428114186046b1a24a47d9ba5449203
parent5c9a0acf6fdee269315815408a7e7e2df39c04ed (diff)
parent29579ee8b8d775cd1788bb515ac6c1f7dc905e6d (diff)
Merge pull request #5247 from kunikunijp/toypop-patch
toypop.cpp: liblrabl: The sprite of the flower withered by an enemy like scissors was not correct.
-rw-r--r--src/mame/drivers/toypop.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mame/drivers/toypop.cpp b/src/mame/drivers/toypop.cpp
index 317b35e5264..bf1bdc26aef 100644
--- a/src/mame/drivers/toypop.cpp
+++ b/src/mame/drivers/toypop.cpp
@@ -279,6 +279,9 @@ void namcos16_state::legacy_obj_draw(bitmap_ind16 &bitmap,const rectangle &clipr
uint8_t width = ((base_spriteram[count+bank2] & 4) >> 2) + 1;
uint8_t height = ((base_spriteram[count+bank2] & 8) >> 3) + 1;
+ tile &= ~(width - 1);
+ tile &= ~((height - 1) << 1);
+
if (flip)
{
fx ^= 1;