From 32880153ab76830311d8a1db3a157cd5ac6e5d9c Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Wed, 8 Feb 2012 12:36:54 +0000 Subject: 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 --- source/cRoot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/cRoot.cpp') diff --git a/source/cRoot.cpp b/source/cRoot.cpp index 0ccee5f20..273bbe318 100644 --- a/source/cRoot.cpp +++ b/source/cRoot.cpp @@ -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; -- cgit v1.2.3