diff --git a/src/mame/drivers/hng64.c b/src/mame/drivers/hng64.c index 481916b97b5..ad1fd220cdb 100644 --- a/src/mame/drivers/hng64.c +++ b/src/mame/drivers/hng64.c @@ -983,14 +983,12 @@ static READ32_HANDLER( tcram_r ) return hng64_tcram[offset]; } -/* Some games (namely sams64 after the title screen) tests bit 15 of this to be high, unknown purpose (vblank? related to the display list?). */ +/* Some games (namely sams64 after the title screen) tests bit 15 of this to be high, + unknown purpose (vblank? related to the display list?). */ static READ32_HANDLER( unk_vreg_r ) { static UINT32 toggle; - - toggle^=0x8000; - - return toggle | (mame_rand(space->machine) & 2); + return ++toggle; }