diff options
author | Max Horn | 2002-07-19 01:40:24 +0000 |
---|---|---|
committer | Max Horn | 2002-07-19 01:40:24 +0000 |
commit | e48fbc08e62607d14a43a348f88a2a96c2de32f5 (patch) | |
tree | e1b3c0a8061ac3fb52a7d820f06d216e8465d065 | |
parent | a3462e0f1c683b507975e8752a199c91cb8c95c7 (diff) | |
download | scummvm-rg350-e48fbc08e62607d14a43a348f88a2a96c2de32f5.tar.gz scummvm-rg350-e48fbc08e62607d14a43a348f88a2a96c2de32f5.tar.bz2 scummvm-rg350-e48fbc08e62607d14a43a348f88a2a96c2de32f5.zip |
make PRNG a bit less predictable
svn-id: r4597
-rw-r--r-- | scummvm.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scummvm.cpp b/scummvm.cpp index 4073484c3d..fa25270ad0 100644 --- a/scummvm.cpp +++ b/scummvm.cpp @@ -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; |