Remove REQUIRED_LOGIN #ifdef which is not needed anymore with the new menu.
This commit is contained in:
parent
825deed8dd
commit
2f747cf614
@ -504,26 +504,12 @@ void MainMenuScreen::eventCallback(Widget* widget, const std::string& name,
|
|||||||
}
|
}
|
||||||
// Define this to require a login to the stk server (default behaviour)
|
// Define this to require a login to the stk server (default behaviour)
|
||||||
// Undefine for testing LAN only.
|
// Undefine for testing LAN only.
|
||||||
#undef REQUIRE_LOGIN
|
|
||||||
#ifdef REQUIRE_LOGIN
|
|
||||||
if (PlayerManager::getCurrentOnlineId())
|
|
||||||
#endif
|
|
||||||
if (MainMenuScreen::m_enable_online)
|
if (MainMenuScreen::m_enable_online)
|
||||||
{
|
{
|
||||||
OnlineScreen::getInstance()->push();
|
OnlineScreen::getInstance()->push();
|
||||||
}
|
}
|
||||||
#ifdef REQUIRE_LOGIN
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (UserConfigParams::m_internet_status != RequestManager::IPERM_ALLOWED)
|
|
||||||
{
|
|
||||||
new MessageDialog(_("You can not play online without internet access. "
|
|
||||||
"If you want to play online, go to options, select "
|
|
||||||
" tab 'User Interface', and edit "
|
|
||||||
"\"Connect to the Internet\"."));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (PlayerManager::getCurrentOnlineId())
|
if (PlayerManager::getCurrentOnlineId())
|
||||||
{
|
{
|
||||||
ProfileManager::get()->setVisiting(PlayerManager::getCurrentOnlineId());
|
ProfileManager::get()->setVisiting(PlayerManager::getCurrentOnlineId());
|
||||||
@ -534,7 +520,6 @@ void MainMenuScreen::eventCallback(Widget* widget, const std::string& name,
|
|||||||
UserScreen::getInstance()->push();
|
UserScreen::getInstance()->push();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
else if (selection == "addons")
|
else if (selection == "addons")
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user