mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-26 11:46:54 +00:00
make PRNG a bit less predictable
svn-id: r4597
This commit is contained in:
parent
a3462e0f1c
commit
e48fbc08e6
@ -224,6 +224,10 @@ int Scumm::scummLoop(int delta)
|
||||
_debugger->on_frame();
|
||||
#endif
|
||||
|
||||
// Randomize the PRNG by calling it at regular intervals. This ensures
|
||||
// that it will be in a different state each time you run the program.
|
||||
getRandomNumber(2);
|
||||
|
||||
_vars[VAR_TMR_1] += delta;
|
||||
_vars[VAR_TMR_2] += delta;
|
||||
_vars[VAR_TMR_3] += delta;
|
||||
|
Loading…
Reference in New Issue
Block a user