Allow adding players when using enter server dialog

This commit is contained in:
Benau 2022-02-04 13:47:41 +08:00
parent b411f8c60d
commit c3b2eaf3e2

View File

@ -228,13 +228,6 @@ void OnlineScreen::eventCallback(Widget* widget, const std::string& name,
else if (selection == "enter-address")
{
m_entered_server = nullptr;
if (NetworkConfig::get()->isAddingNetworkPlayers())
{
core::stringw msg =
_("No player available for connecting to server.");
MessageQueue::add(MessageQueue::MT_ERROR, msg);
return;
}
new EnterAddressDialog(&m_entered_server);
}
} // eventCallback