small update

This commit is contained in:
Michaël Banaan Ananas 2014-03-07 01:41:54 +00:00
parent 8431b276af
commit 5ffc51f3c1
2 changed files with 9 additions and 11 deletions

View File

@ -503,11 +503,11 @@ static INPUT_PORTS_START( scion )
PORT_DIPSETTING( 0x10, "20000 80000" )
PORT_DIPSETTING( 0x30, "30000 90000" )
PORT_DIPNAME( 0x40, 0x00, DEF_STR( Unused ) )
PORT_DIPSETTING( 0x40, DEF_STR( Off ) )
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
PORT_DIPSETTING( 0x00, DEF_STR( Off ) )
PORT_DIPSETTING( 0x40, DEF_STR( On ) )
PORT_DIPNAME( 0x80, 0x00, DEF_STR( Unused ) )
PORT_DIPSETTING( 0x80, DEF_STR( Off ) )
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
PORT_DIPSETTING( 0x00, DEF_STR( Off ) )
PORT_DIPSETTING( 0x80, DEF_STR( On ) )
PORT_MODIFY("DSW1")
PORT_DIPNAME( 0x07, 0x00, DEF_STR( Coin_A ) )

View File

@ -125,22 +125,20 @@ void wiz_state::draw_tiles(bitmap_ind16 &bitmap, const rectangle &cliprect, int
/* draw the tiles. They are characters, but draw them as sprites. */
for (int offs = 0x400-1; offs >= 0; offs--)
{
int scroll;
int code = vram[offs];
int sx = offs & 0x1f;
int sy = offs >> 5;
int color = aram[sx << 1 | 1] & 7;
// wiz/kungfut hw allows more color variety on screen
if (colortype)
color = layer ? (cram[offs] & 7) : ((color & 4) | (vram[offs] & 3));
color = layer ? (cram[offs] & 7) : ((color & 4) | (code & 3));
scroll = (8*sy + 256 - aram[2 * sx]) & 0xff;
int scroll = (8*sy + 256 - aram[sx << 1]) & 0xff;
if (m_flipy)
{
scroll = (248 - scroll) & 0xff;
}
if (m_flipx) sx = 31 - sx;
if (m_flipx)
sx = 31 - sx;
gfx->transpen(m_palette,bitmap,cliprect,
code,