Small aesthetical changes

This commit is contained in:
BeaR 2012-12-07 17:31:27 +01:00 committed by oy
parent 639c7cf6a8
commit 66579083fa
2 changed files with 18 additions and 21 deletions

View file

@ -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;
}

View file

@ -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;
}