From 787382caf8d3f7f8df4598b29586b44b7b071c53 Mon Sep 17 00:00:00 2001 From: faketruth Date: Wed, 7 Mar 2012 13:36:30 +0000 Subject: Fixed bug where cPlayer's cClientHandle was used after cPlayer was destroyed http://forum.mc-server.org/showthread.php?tid=380 Also removed the SetClientHandle() function from cPlayer Added a Destroyed() function to cEntity that is called ONLY ONCE after an entity has been 'destroyed' Cleaned up some code, using enums for GameMode and Weather and replaced some 'const char *' with 'const AString &' Exposed some more functions to Lua git-svn-id: http://mc-server.googlecode.com/svn/trunk@382 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cRoot.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/cRoot.h') diff --git a/source/cRoot.h b/source/cRoot.h index 0b5e9c7af..85b12eb12 100644 --- a/source/cRoot.h +++ b/source/cRoot.h @@ -37,7 +37,7 @@ public: cServer* GetServer() { return m_Server; } //tolua_export OBSOLETE cWorld* GetWorld(); //tolua_export cWorld* GetDefaultWorld(); //tolua_export - cWorld* GetWorld( const char* a_WorldName ); //tolua_export + cWorld* GetWorld( const AString & a_WorldName ); //tolua_export cMonsterConfig *GetMonsterConfig() { return m_MonsterConfig;} cGroupManager* GetGroupManager() { return m_GroupManager; } //tolua_export -- cgit v1.2.3