Universalize a single call to srand() on map init (#1422)

This commit is contained in:
Deathreus
2021-03-07 04:54:27 -08:00
committed by GitHub
parent 5bc48b2ab3
commit f9633a5f6f
4 changed files with 3 additions and 6 deletions
+3
View File
@@ -337,6 +337,9 @@ void SourceModBase::StartSourceMod(bool late)
static bool g_LevelEndBarrier = false;
bool SourceModBase::LevelInit(char const *pMapName, char const *pMapEntities, char const *pOldLevel, char const *pLandmarkName, bool loadGame, bool background)
{
/* Seed rand() globally per map */
srand(time(NULL));
g_Players.MaxPlayersChanged();
/* If we're not loaded... */