diff --git a/src/game.cpp b/src/game.cpp index f2a76d763..35d0aa9f9 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -2183,27 +2183,8 @@ bool Game::connectToServer(const std::string &playername, wait_time += dtime; // Only time out if we aren't waiting for the server we started - if ((!address->empty()) && (wait_time > 10)) { - bool sent_old_init = g_settings->getFlag("send_pre_v25_init"); - // If no pre v25 init was sent, and no answer was received, - // but the low level connection could be established - // (meaning that we have a peer id), then we probably wanted - // to connect to a legacy server. In this case, tell the user - // to enable the option to be able to connect. - if (!sent_old_init && - (client->getProtoVersion() == 0) && - client->connectedToServer()) { - *error_message = "Connection failure: init packet not " - "recognized by server.\n" - "Most likely the server uses an old protocol version ( Network -> Support older Servers'\n" - "entry in the advanced settings menu."; - } else { - *error_message = "Connection timed out."; - } + if (!address->empty() && wait_time > 10) { + *error_message = "Connection timed out."; errorstream << *error_message << std::endl; break; }