From 87d757675c2fdf2a1b90234242394d667879471d Mon Sep 17 00:00:00 2001 From: tritonas00 Date: Wed, 17 Feb 2021 18:13:08 +0200 Subject: [PATCH] disconnect if terrain not found --- source/main/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/main/main.cpp b/source/main/main.cpp index b77b4acc72..9aca7d2bdb 100644 --- a/source/main/main.cpp +++ b/source/main/main.cpp @@ -512,6 +512,10 @@ int main(int argc, char *argv[]) } else { + if (App::mp_state->GetEnum() == MpState::CONNECTED) + { + App::GetGameContext()->PushMessage(Message(MSG_NET_DISCONNECT_REQUESTED)); + } App::GetGuiManager()->SetVisible_LoadingWindow(false); failed_m = true; }