[Scummvm-cvs-logs] CVS: scummvm scummvm.cpp,1.185,1.186
Max Horn
fingolfin at users.sourceforge.net
Thu Jul 18 18:41:02 CEST 2002
Update of /cvsroot/scummvm/scummvm
In directory usw-pr-cvs1:/tmp/cvs-serv326
Modified Files:
scummvm.cpp
Log Message:
make PRNG a bit less predictable
Index: scummvm.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scummvm.cpp,v
retrieving revision 1.185
retrieving revision 1.186
diff -u -d -r1.185 -r1.186
--- scummvm.cpp 18 Jul 2002 20:26:35 -0000 1.185
+++ scummvm.cpp 19 Jul 2002 01:40:24 -0000 1.186
@@ -224,6 +224,10 @@
_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;
More information about the Scummvm-git-logs
mailing list