From abf9e3f6dd9b610ef83a586e12abfbbd00dea640 Mon Sep 17 00:00:00 2001 From: "lapayo94@gmail.com" Date: Fri, 13 Jul 2012 15:26:27 +0000 Subject: The gamemode is now only saved if it is different from the current gamemode. Default gamemode now depends on the joined world, not on the default world git-svn-id: http://mc-server.googlecode.com/svn/trunk@661 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cClientHandle.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/cClientHandle.cpp') 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()); -- cgit v1.2.3