MTRand class is not created in each tick, therefore much improving tick-thread time (now uses ~5 % CPU instead of one full core)
git-svn-id: http://mc-server.googlecode.com/svn/trunk@245 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
@@ -162,7 +162,7 @@ void cRoot::LoadWorlds()
|
||||
cIniFile IniFile("settings.ini"); IniFile.ReadFile();
|
||||
|
||||
// First get the default world
|
||||
std::string DefaultWorldName = IniFile.GetValue("Worlds", "DefaultWorld", "world");
|
||||
AString DefaultWorldName = IniFile.GetValue("Worlds", "DefaultWorld", "world");
|
||||
m_pState->pDefaultWorld = new cWorld( DefaultWorldName.c_str() );
|
||||
m_pState->pDefaultWorld->InitializeSpawn();
|
||||
m_pState->WorldsByName[ DefaultWorldName ] = m_pState->pDefaultWorld;
|
||||
|
||||
Reference in New Issue
Block a user