mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-06 18:00:44 +00:00
GLK: ALAN3: Re-enable ifdefed TODO block
This commit is contained in:
parent
2a0f8af958
commit
76d4816853
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
@ -222,6 +222,11 @@ public:
|
||||
* Get a random number
|
||||
*/
|
||||
uint getRandomNumber(uint max) { return _random.getRandomNumber(max); }
|
||||
|
||||
/**
|
||||
* Set a random number seed
|
||||
*/
|
||||
void setRandomNumberSeed(uint seed) { _random.setSeed(seed); }
|
||||
};
|
||||
|
||||
extern GlkEngine *g_vm;
|
||||
|
Loading…
Reference in New Issue
Block a user