mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-20 09:34:19 +00:00
Initialize random number earlier
This commit is contained in:
parent
ab6b503343
commit
83cb1cdaea
|
@ -2342,6 +2342,8 @@ void CClient::Run()
|
|||
m_LocalStartTime = time_get();
|
||||
m_SnapshotParts = 0;
|
||||
|
||||
srand(time(NULL));
|
||||
|
||||
// init SDL
|
||||
{
|
||||
if(SDL_Init(0) < 0)
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue