mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 04:21:47 +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_grandprix.h"
|
||||||
#include "k_boss.h"
|
#include "k_boss.h"
|
||||||
#include "doomstat.h"
|
#include "doomstat.h"
|
||||||
|
#include "m_random.h" // P_ClearRandom
|
||||||
|
|
||||||
#ifdef CMAKECONFIG
|
#ifdef CMAKECONFIG
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
@ -1232,6 +1233,11 @@ void D_SRB2Main(void)
|
||||||
// initialise locale code
|
// initialise locale code
|
||||||
M_StartupLocale();
|
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)
|
// get parameters from a response file (eg: srb2 @parms.txt)
|
||||||
M_FindResponseFile();
|
M_FindResponseFile();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue