mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Call rand() a few times after calling srand()
This commit is contained in:
parent
3c43515cbd
commit
41253ee689
1 changed files with 3 additions and 0 deletions
|
|
@ -1182,6 +1182,9 @@ void D_SRB2Main(void)
|
||||||
|
|
||||||
// rand() needs seeded regardless of password
|
// rand() needs seeded regardless of password
|
||||||
srand((unsigned int)time(NULL));
|
srand((unsigned int)time(NULL));
|
||||||
|
rand();
|
||||||
|
rand();
|
||||||
|
rand();
|
||||||
|
|
||||||
if (M_CheckParm("-password") && M_IsNextParm())
|
if (M_CheckParm("-password") && M_IsNextParm())
|
||||||
D_SetPassword(M_GetNextParm());
|
D_SetPassword(M_GetNextParm());
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue