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:
parent
bfced53aaf
commit
99bc5477a2
@ -490,10 +490,12 @@ void MainMenuScreen::eventCallback(Widget* widget, const std::string& name,
|
|||||||
"\"Connect to the Internet\"."));
|
"\"Connect to the Internet\"."));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (PlayerManager::getCurrentOnlineId())
|
if(1)
|
||||||
|
// if (PlayerManager::getCurrentOnlineId())
|
||||||
{
|
{
|
||||||
// For 0.8.2 disable the server menu, instead go to online profile
|
// 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();
|
OnlineScreen::getInstance()->push();
|
||||||
#else
|
#else
|
||||||
ProfileManager::get()->setVisiting(PlayerManager::getCurrentOnlineId());
|
ProfileManager::get()->setVisiting(PlayerManager::getCurrentOnlineId());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user