diff options
author | Max Horn | 2003-10-13 18:09:23 +0000 |
---|---|---|
committer | Max Horn | 2003-10-13 18:09:23 +0000 |
commit | e3fcae3869b808014c7280bf208f48363907f5aa (patch) | |
tree | dccbddb9d7b7ea105aafcabf74dff7609038b7a7 /scumm | |
parent | 5fb358365c9cde4baf2b84b5198ecf8af6610862 (diff) | |
download | scummvm-rg350-e3fcae3869b808014c7280bf208f48363907f5aa.tar.gz scummvm-rg350-e3fcae3869b808014c7280bf208f48363907f5aa.tar.bz2 scummvm-rg350-e3fcae3869b808014c7280bf208f48363907f5aa.zip |
init random seed with time
svn-id: r10783
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/scummvm.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scumm/scummvm.cpp b/scumm/scummvm.cpp index 8c94c25d87..49668511e2 100644 --- a/scumm/scummvm.cpp +++ b/scumm/scummvm.cpp @@ -585,6 +585,8 @@ ScummEngine::ScummEngine(GameDetector *detector, OSystem *syst) VAR_VERB_ALLOWED = 0xFF; VAR_CLICK_AREA = 0xFF; + // Set the RNG seed + _rnd.setSeed(_system->get_msec()); // Use g_scumm from error() ONLY g_scumm = this; |