Initialize random number earlier

This commit is contained in:
def 2014-08-13 12:58:53 +02:00
parent ab6b503343
commit 83cb1cdaea
2 changed files with 2 additions and 2 deletions

View file

@ -2342,6 +2342,8 @@ void CClient::Run()
m_LocalStartTime = time_get();
m_SnapshotParts = 0;
srand(time(NULL));
// init SDL
{
if(SDL_Init(0) < 0)

View file

@ -259,8 +259,6 @@ void CGameClient::OnInit()
{
m_pGraphics = Kernel()->RequestInterface<IGraphics>();
srand(time(NULL));
// propagate pointers
m_UI.SetGraphics(Graphics(), TextRender());
m_RenderTools.m_pGraphics = Graphics();