mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 22:48:18 +00:00
Small aesthetical changes
This commit is contained in:
parent
639c7cf6a8
commit
66579083fa
|
@ -1908,21 +1908,8 @@ void CClient::Run()
|
|||
|
||||
m_LastRenderTime = Now;
|
||||
|
||||
if(g_Config.m_DbgStress)
|
||||
{
|
||||
if((m_RenderFrames%10) == 0)
|
||||
{
|
||||
if(!m_EditorActive)
|
||||
Render();
|
||||
else
|
||||
{
|
||||
m_pEditor->UpdateAndRender();
|
||||
DebugRender();
|
||||
}
|
||||
m_pGraphics->Swap();
|
||||
}
|
||||
}
|
||||
else
|
||||
// when we are stress testing only render every 10th frame
|
||||
if(!g_Config.m_DbgStress || (m_RenderFrames%10) == 0 )
|
||||
{
|
||||
if(!m_EditorActive)
|
||||
Render();
|
||||
|
@ -2234,12 +2221,7 @@ void CClient::RegisterCommands()
|
|||
m_pConsole->Chain("br_filter_serveraddress", ConchainServerBrowserUpdate, this);
|
||||
}
|
||||
|
||||
static CClient *CreateClient()
|
||||
{
|
||||
CClient *pClient = static_cast<CClient *>(mem_alloc(sizeof(CClient), 1));
|
||||
mem_zero(pClient, sizeof(CClient));
|
||||
return new(pClient) CClient;
|
||||
}
|
||||
static CClient *CreateClient() { return new CClient();}
|
||||
|
||||
/*
|
||||
Server Time
|
||||
|
@ -2353,5 +2335,18 @@ int main(int argc, const char **argv) // ignore_convention
|
|||
// write down the config and quit
|
||||
pConfig->Save();
|
||||
|
||||
// free components
|
||||
delete pClient;
|
||||
delete pKernel;
|
||||
delete pEngine;
|
||||
delete pConsole;
|
||||
delete pStorage;
|
||||
delete pConfig;
|
||||
delete pEngineSound;
|
||||
delete pEngineInput;
|
||||
delete pEngineTextRender;
|
||||
delete pEngineMap;
|
||||
delete pEngineMasterServer;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -1708,12 +1708,14 @@ int main(int argc, const char **argv) // ignore_convention
|
|||
// free
|
||||
delete pServer;
|
||||
delete pKernel;
|
||||
delete pEngine;
|
||||
delete pEngineMap;
|
||||
delete pGameServer;
|
||||
delete pConsole;
|
||||
delete pEngineMasterServer;
|
||||
delete pStorage;
|
||||
delete pConfig;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue