From e086b931ea7ab329a1142ec26c008cdb22fb065c Mon Sep 17 00:00:00 2001 From: faketruth Date: Wed, 22 Aug 2012 11:22:26 +0000 Subject: Chat history limit on the WebAdmin chat Did some refactoring on the JavaScript side of the WebAdmin chat Got rid of cRoot::sRootState Fixed a crash on the WebAdmin when a page is loaded before a world exists git-svn-id: http://mc-server.googlecode.com/svn/trunk@775 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cRoot.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source/cRoot.h') diff --git a/source/cRoot.h b/source/cRoot.h index a426207e8..b65c1d91d 100644 --- a/source/cRoot.h +++ b/source/cRoot.h @@ -102,8 +102,9 @@ private: bool m_bStop; bool m_bRestart; - struct sRootState; - sRootState* m_pState; + typedef std::map< AString, cWorld* > WorldMap; + cWorld* m_pDefaultWorld; + WorldMap m_WorldsByName; cThread* m_InputThread; static void InputThread(void* a_Params); -- cgit v1.2.3