From 99bc5477a213982e9ae5f50e0f4aaa9d915acb15 Mon Sep 17 00:00:00 2001 From: hiker Date: Wed, 10 Feb 2016 18:03:42 +1100 Subject: [PATCH] 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). --- src/states_screens/main_menu_screen.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/states_screens/main_menu_screen.cpp b/src/states_screens/main_menu_screen.cpp index 0bc4f0e9b..0d9198b64 100644 --- a/src/states_screens/main_menu_screen.cpp +++ b/src/states_screens/main_menu_screen.cpp @@ -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());