Init RNG state on engine load

This commit is contained in:
Sally Coolatta 2022-09-19 00:55:33 -04:00
parent 1563660a39
commit 04d4158ff6

View file

@ -74,6 +74,7 @@
#include "k_grandprix.h"
#include "k_boss.h"
#include "doomstat.h"
#include "m_random.h" // P_ClearRandom
#ifdef CMAKECONFIG
#include "config.h"
@ -1232,6 +1233,11 @@ void D_SRB2Main(void)
// initialise locale code
M_StartupLocale();
// This will be done more properly on
// level load, but for now at least make
// sure that it is initalized at all
P_ClearRandom(0);
// get parameters from a response file (eg: srb2 @parms.txt)
M_FindResponseFile();