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
This commit is contained in:
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user