From 34c71b1007ef6f88c3d712bd841b5e68915f8ff0 Mon Sep 17 00:00:00 2001 From: alexsandulescu Date: Sat, 17 Jul 2021 00:01:29 +0300 Subject: [PATCH] thigns --- r5dev/src/overlay.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/r5dev/src/overlay.cpp b/r5dev/src/overlay.cpp index 28cc5a4b..4324b0f0 100644 --- a/r5dev/src/overlay.cpp +++ b/r5dev/src/overlay.cpp @@ -511,7 +511,9 @@ CCompanion::CCompanion() } case EHostStatus::Hosting: { - SendHostingPostRequest(); + if (lastMap == "no_map" || lastMap == "") + HostingStatus = EHostStatus::NotHosting; + else SendHostingPostRequest(); break; } case EHostStatus::ConnectedToSomeoneElse: @@ -789,14 +791,10 @@ CCompanion::CCompanion() ImGui::SetNextWindowSize(ImVec2(800, 890), ImGuiCond_FirstUseEver); ImGui::SetWindowPos(ImVec2(-500, 50), ImGuiCond_FirstUseEver); - if (!ImGui::Begin(title, p_open)) + if (!ImGui::Begin(title, NULL)) { ImGui::End(); return; } - if (*p_open == NULL) - { - g_bShowMenu = false; - } /////////////////////////////////////////////////////////////////////// CompMenu();