summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatarGravatar mamehaze <mamehaze@users.noreply.github.com>2014-11-26 02:21:27 +0000
committerGravatarGravatar mamehaze <mamehaze@users.noreply.github.com>2014-11-26 02:21:27 +0000
commit402dd5aa95f02f62b3179bd9058898da49f48bd9 (patch) (github)
tree84050db7f1c9c9bbfccc8200a085724b98d6250d
parentaad223694077ab086026ed9a639aa9a98fc1dedb (diff)
downloadmame-402dd5aa95f02f62b3179bd9058898da49f48bd9.tar.bz2
mame-402dd5aa95f02f62b3179bd9058898da49f48bd9.zip
tile flips (nw)
-rw-r--r--src/mame/drivers/supduck.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mame/drivers/supduck.c b/src/mame/drivers/supduck.c
index a38d6d6e056..1a586c9e7e4 100644
--- a/src/mame/drivers/supduck.c
+++ b/src/mame/drivers/supduck.c
@@ -166,7 +166,9 @@ TILE_GET_INFO_MEMBER(supduck_state::get_fore_tile_info)
if (data & 0x8000) code |= 0x200;
int color = (data & 0x0f00)>>8;
- int flags = 0;
+ int flags = (data & 0x2000) ? TILE_FLIPX : 0;
+ flags |=(data & 0x1000) ? TILE_FLIPY : 0;
+
SET_TILE_INFO_MEMBER(1, code, color, flags);
}
@@ -182,7 +184,8 @@ TILE_GET_INFO_MEMBER(supduck_state::get_back_tile_info)
if (data & 0x8000) code |= 0x200;
int color = (data & 0x0f00)>>8;
- int flags = 0;
+ int flags = (data & 0x2000) ? TILE_FLIPX : 0;
+ flags |=(data & 0x1000) ? TILE_FLIPY : 0;
SET_TILE_INFO_MEMBER(2, code, color, flags);
}