From 83cb1cdaeac8cd1020e6bd3eb68ae7f55b46c2d3 Mon Sep 17 00:00:00 2001 From: def Date: Wed, 13 Aug 2014 12:58:53 +0200 Subject: [PATCH] Initialize random number earlier --- src/engine/client/client.cpp | 2 ++ src/game/client/gameclient.cpp | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/client/client.cpp b/src/engine/client/client.cpp index 91948e537..50339805a 100644 --- a/src/engine/client/client.cpp +++ b/src/engine/client/client.cpp @@ -2342,6 +2342,8 @@ void CClient::Run() m_LocalStartTime = time_get(); m_SnapshotParts = 0; + srand(time(NULL)); + // init SDL { if(SDL_Init(0) < 0) diff --git a/src/game/client/gameclient.cpp b/src/game/client/gameclient.cpp index a12debafb..2ee23f76e 100644 --- a/src/game/client/gameclient.cpp +++ b/src/game/client/gameclient.cpp @@ -259,8 +259,6 @@ void CGameClient::OnInit() { m_pGraphics = Kernel()->RequestInterface(); - srand(time(NULL)); - // propagate pointers m_UI.SetGraphics(Graphics(), TextRender()); m_RenderTools.m_pGraphics = Graphics();