diff options
Diffstat (limited to 'engines/glk/alan3/main.cpp')
-rw-r--r-- | engines/glk/alan3/main.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/engines/glk/alan3/main.cpp b/engines/glk/alan3/main.cpp index 9d7b4d71f6..7b09840ce1 100644 --- a/engines/glk/alan3/main.cpp +++ b/engines/glk/alan3/main.cpp @@ -385,12 +385,10 @@ static void checkDebug(CONTEXT) { traceInstructionOption = FALSE; tracePushOption = FALSE; } -#ifdef TODO - if (debugOption || regressionTestOption) /* If debugging... */ - srand(1); /* ... use no randomization */ - else - srand(time(0)); /* Else seed random generator */ -#endif + + // If debugging, use no randomization + if (debugOption || regressionTestOption) + g_vm->setRandomNumberSeed(1); } |