From 993680a39e5c63ef0b370c7f80fa932ede993870 Mon Sep 17 00:00:00 2001 From: "admin@omencraft.com" Date: Thu, 10 Nov 2011 18:28:21 +0000 Subject: Can now set gamemode via lua. git-svn-id: http://mc-server.googlecode.com/svn/trunk@89 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cClientHandle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/cClientHandle.cpp') diff --git a/source/cClientHandle.cpp b/source/cClientHandle.cpp index 8409fce66..655048180 100644 --- a/source/cClientHandle.cpp +++ b/source/cClientHandle.cpp @@ -1160,7 +1160,7 @@ void cClientHandle::Tick(float a_Dt) cWorld* World = cRoot::Get()->GetWorld( m_Player->GetLoadedWorldName() ); // TODO - Get the correct world or better yet, move this to the main thread so we don't have to lock anything if( !World ) World = cRoot::Get()->GetDefaultWorld(); World->LockEntities(); - m_Player->SetGameMode ( World->GetGameMode() ); //set player's gamemode to server's gamemode at login. + m_Player->LoginSetGameMode ( World->GetGameMode() ); //set player's gamemode to server's gamemode at login. m_Player->SetIP ( m_pState->Socket.GetIPString() ); -- cgit v1.2.3