mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-03-25 20:42:35 +00:00
Init RNG state on engine load
This commit is contained in:
parent
1563660a39
commit
04d4158ff6
1 changed files with 6 additions and 0 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue