Use a password to authenticate the client that is allowed to

control a server (now the controlling client can reconnect in
case it gets disconnected, previously with only allowing the host
with id 1 to control, the server could not be controlled anymore).
This commit is contained in:
hiker 2016-02-10 18:03:42 +11:00
parent bfced53aaf
commit 99bc5477a2

View File

@ -490,10 +490,12 @@ void MainMenuScreen::eventCallback(Widget* widget, const std::string& name,
"\"Connect to the Internet\"."));
return;
}
if (PlayerManager::getCurrentOnlineId())
if(1)
// if (PlayerManager::getCurrentOnlineId())
{
// For 0.8.2 disable the server menu, instead go to online profile
#ifdef ENABLE_NETWORK_MULTIPLAYER_SCREEN
#define ENABLE_NETWORK_MULTIPLAYER_SCREEN
#ifdef ENABLE_NETWORK_MULTIPLAYER_SCREEN
OnlineScreen::getInstance()->push();
#else
ProfileManager::get()->setVisiting(PlayerManager::getCurrentOnlineId());