mirror of
https://github.com/holub/mame
synced 2025-06-05 04:16:28 +03:00
MESS bug #1859 fix (nw)
This commit is contained in:
parent
3c9cfd9970
commit
d87c232b65
@ -360,9 +360,11 @@ DRIVER_INIT(vectrex)
|
|||||||
state->m_imager_colors[i] = RGB_WHITE;
|
state->m_imager_colors[i] = RGB_WHITE;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Uninitialized RAM needs to return 0xff. Otherwise the mines in
|
* Minestorm's PRNG doesn't work with a 0 seed (mines in the first
|
||||||
* the first level of Minestorm are not evenly distributed.
|
* level are not randomly distributed then). Only patch the seed's
|
||||||
|
* location since initializing all RAM randomly causes problems
|
||||||
|
* with Berzerk.
|
||||||
*/
|
*/
|
||||||
|
state->m_gce_vectorram[0x7e] = machine.rand() | 1;
|
||||||
memset(state->m_gce_vectorram, 0xff, state->m_gce_vectorram_size);
|
state->m_gce_vectorram[0x7f] = machine.rand() | 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user