Merge branch 'upstream' of https://github.com/Edward850/zdoom
This commit is contained in:
commit
34360e7975
4 changed files with 58 additions and 4 deletions
|
|
@ -1993,7 +1993,19 @@ static void D_DoomInit()
|
|||
|
||||
SetLanguageIDs ();
|
||||
|
||||
rngseed = I_MakeRNGSeed();
|
||||
const char *v = Args->CheckValue("-rngseed");
|
||||
if (v)
|
||||
{
|
||||
rngseed = staticrngseed = atoi(v);
|
||||
use_staticrng = true;
|
||||
Printf("D_DoomInit: Static RNGseed %d set.\n", rngseed);
|
||||
}
|
||||
else
|
||||
{
|
||||
rngseed = I_MakeRNGSeed();
|
||||
use_staticrng = false;
|
||||
}
|
||||
|
||||
FRandom::StaticClearRandom ();
|
||||
|
||||
Printf ("M_LoadDefaults: Load system defaults.\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue