From: Holger Schemel Date: Fri, 22 Jun 2018 19:25:22 +0000 (+0200) Subject: improved handling network errors (show message instead of stopping program) X-Git-Tag: 4.1.1.0~103 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=d621e281cdb7c66130b216b379fd88a45fb82afa;p=rocksndiamonds.git improved handling network errors (show message instead of stopping program) --- diff --git a/src/init.c b/src/init.c index ffb82594..9c9af0e9 100644 --- a/src/init.c +++ b/src/init.c @@ -5620,7 +5620,13 @@ void InitNetworkServer() return; if (!ConnectToServer(network.server_host, network.server_port)) - Error(ERR_EXIT, "cannot connect to network game server"); + { + Request("Cannot connect to network server!", REQ_CONFIRM); + + network.enabled = FALSE; + + return; + } SendToServer_PlayerName(setup.player_name); SendToServer_ProtocolVersion();