make PRNG a bit less predictable

svn-id: r4597
This commit is contained in:
Max Horn 2002-07-19 01:40:24 +00:00
parent a3462e0f1c
commit e48fbc08e6

View File

@ -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;