diff options
author | lapayo94@gmail.com <lapayo94@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-07-13 17:26:27 +0200 |
---|---|---|
committer | lapayo94@gmail.com <lapayo94@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-07-13 17:26:27 +0200 |
commit | abf9e3f6dd9b610ef83a586e12abfbbd00dea640 (patch) | |
tree | 46c3fbcf113028c8bc92731b0deb76f215275a51 /source/cClientHandle.cpp | |
parent | Save last gamemode (diff) | |
download | cuberite-abf9e3f6dd9b610ef83a586e12abfbbd00dea640.tar cuberite-abf9e3f6dd9b610ef83a586e12abfbbd00dea640.tar.gz cuberite-abf9e3f6dd9b610ef83a586e12abfbbd00dea640.tar.bz2 cuberite-abf9e3f6dd9b610ef83a586e12abfbbd00dea640.tar.lz cuberite-abf9e3f6dd9b610ef83a586e12abfbbd00dea640.tar.xz cuberite-abf9e3f6dd9b610ef83a586e12abfbbd00dea640.tar.zst cuberite-abf9e3f6dd9b610ef83a586e12abfbbd00dea640.zip |
Diffstat (limited to 'source/cClientHandle.cpp')
-rw-r--r-- | source/cClientHandle.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/cClientHandle.cpp b/source/cClientHandle.cpp index 6e7df2bb8..1ce6fa37b 100644 --- a/source/cClientHandle.cpp +++ b/source/cClientHandle.cpp @@ -307,7 +307,8 @@ void cClientHandle::Authenticate(void) World = cRoot::Get()->GetDefaultWorld(); } - // We donīt need this, do we? m_Player->LoginSetGameMode (World->GetGameMode()); //set player's gamemode to server's gamemode at login. TODO: set to last player's gamemode at logout + if(m_Player->GetGameMode() == eGameMode_NotSet) + m_Player->LoginSetGameMode(World->GetGameMode()); m_Player->SetIP (m_Socket.GetIPString()); |