From 239d6c8d95697036663196e37a824de1b0248959 Mon Sep 17 00:00:00 2001 From: faketruth Date: Tue, 1 Nov 2011 22:19:21 +0000 Subject: Accidentally removed a line of code git-svn-id: http://mc-server.googlecode.com/svn/trunk@41 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cClientHandle.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/cClientHandle.cpp b/source/cClientHandle.cpp index b4d74cc01..dda2ce2a0 100644 --- a/source/cClientHandle.cpp +++ b/source/cClientHandle.cpp @@ -941,6 +941,7 @@ void cClientHandle::Tick(float a_Dt) World->LockEntities(); // Spawn player (only serversided, so data is loaded) m_Player = new cPlayer( this, GetUsername() ); // !!DO NOT INITIALIZE!! <- is done after receiving MoveLook Packet + m_Player->SetGameMode ( World->GetGameMode() ); //set player's gamemode to server's gamemode at login. cRoot::Get()->GetPluginManager()->CallHook( cPluginManager::E_PLUGIN_PLAYER_SPAWN, 1, m_Player ); // TODO - this function is called from a seperate thread, which might be dangerous @@ -948,7 +949,7 @@ void cClientHandle::Tick(float a_Dt) cPacket_Login LoginResponse; LoginResponse.m_ProtocolVersion = m_Player->GetUniqueID(); //LoginResponse.m_Username = ""; - LoginResponse.m_ServerMode = m_Player->GetGameMode(); //set gamemode from world. + LoginResponse.m_ServerMode = m_Player->GetGameMode(); //set gamemode from player. LoginResponse.m_MapSeed = 0; LoginResponse.m_Dimension = 0; Send( LoginResponse ); -- cgit v1.2.3