mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +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_LocalStartTime = time_get();
|
||||||
m_SnapshotParts = 0;
|
m_SnapshotParts = 0;
|
||||||
|
|
||||||
|
srand(time(NULL));
|
||||||
|
|
||||||
// init SDL
|
// init SDL
|
||||||
{
|
{
|
||||||
if(SDL_Init(0) < 0)
|
if(SDL_Init(0) < 0)
|
||||||
|
|
|
@ -259,8 +259,6 @@ void CGameClient::OnInit()
|
||||||
{
|
{
|
||||||
m_pGraphics = Kernel()->RequestInterface<IGraphics>();
|
m_pGraphics = Kernel()->RequestInterface<IGraphics>();
|
||||||
|
|
||||||
srand(time(NULL));
|
|
||||||
|
|
||||||
// propagate pointers
|
// propagate pointers
|
||||||
m_UI.SetGraphics(Graphics(), TextRender());
|
m_UI.SetGraphics(Graphics(), TextRender());
|
||||||
m_RenderTools.m_pGraphics = Graphics();
|
m_RenderTools.m_pGraphics = Graphics();
|
||||||
|
|
Loading…
Reference in a new issue