Skip to content

Commit

Permalink
disconnect if terrain not found
Browse files Browse the repository at this point in the history
  • Loading branch information
tritonas00 committed Feb 17, 2021
1 parent dd827ff commit 2dbeee1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,10 @@ int main(int argc, char *argv[])
}
else
{
if (App::mp_state->GetEnum<MpState>() == MpState::CONNECTED)
{
App::GetGameContext()->PushMessage(Message(MSG_NET_DISCONNECT_REQUESTED));
}
App::GetGuiManager()->SetVisible_LoadingWindow(false);
failed_m = true;
}
Expand Down

0 comments on commit 2dbeee1

Please # to comment.