summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/lazercmd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/lazercmd.cpp')
-rw-r--r--src/mame/drivers/lazercmd.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/mame/drivers/lazercmd.cpp b/src/mame/drivers/lazercmd.cpp
index 3b0c9e28cf7..bffece6e8bb 100644
--- a/src/mame/drivers/lazercmd.cpp
+++ b/src/mame/drivers/lazercmd.cpp
@@ -783,9 +783,8 @@ ROM_START( bbonk )
ROM_END
-DRIVER_INIT_MEMBER(lazercmd_state,lazercmd)
+void lazercmd_state::init_lazercmd()
{
- int i, y;
uint8_t *gfx = memregion("gfx1")->base();
/******************************************************************
@@ -796,12 +795,12 @@ DRIVER_INIT_MEMBER(lazercmd_state,lazercmd)
* character generator only contains 8 rows, so we expand the
* font to 8x10.
******************************************************************/
- for (i = 0; i < 0x40; i++)
+ for (int i = 0; i < 0x40; i++)
{
uint8_t *d = &gfx[0 * 64 * 10 + i * VERT_CHR];
uint8_t *s = &gfx[4 * 64 * 10 + i * VERT_FNT];
- for (y = 0; y < VERT_CHR; y++)
+ for (int y = 0; y < VERT_CHR; y++)
{
d[0 * 64 * 10] = (y < VERT_FNT) ? *s++ : 0xff;
d[1 * 64 * 10] = (y == VERT_CHR - 1) ? 0 : *d;
@@ -814,6 +813,6 @@ DRIVER_INIT_MEMBER(lazercmd_state,lazercmd)
-GAMEL( 1976, lazercmd, 0, lazercmd, lazercmd, lazercmd_state, lazercmd, ROT0, "Meadows Games, Inc.", "Lazer Command", MACHINE_SUPPORTS_SAVE, layout_lazercmd )
-GAMEL( 1977, medlanes, 0, medlanes, medlanes, lazercmd_state, lazercmd, ROT0, "Meadows Games, Inc.", "Meadows Lanes", MACHINE_IMPERFECT_SOUND | MACHINE_SUPPORTS_SAVE, layout_medlanes )
-GAME ( 1976, bbonk, 0, bbonk, bbonk, lazercmd_state, lazercmd, ROT0, "Meadows Games, Inc.", "Bigfoot Bonkers", MACHINE_SUPPORTS_SAVE )
+GAMEL( 1976, lazercmd, 0, lazercmd, lazercmd, lazercmd_state, init_lazercmd, ROT0, "Meadows Games, Inc.", "Lazer Command", MACHINE_SUPPORTS_SAVE, layout_lazercmd )
+GAMEL( 1977, medlanes, 0, medlanes, medlanes, lazercmd_state, init_lazercmd, ROT0, "Meadows Games, Inc.", "Meadows Lanes", MACHINE_IMPERFECT_SOUND | MACHINE_SUPPORTS_SAVE, layout_medlanes )
+GAME( 1976, bbonk, 0, bbonk, bbonk, lazercmd_state, init_lazercmd, ROT0, "Meadows Games, Inc.", "Bigfoot Bonkers", MACHINE_SUPPORTS_SAVE )