aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scummvm.cpp4
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;