From 964347dbe4d1b33b418c447bf147932928ecc9ec Mon Sep 17 00:00:00 2001 From: Vanquish <81840648+vanquish1@users.noreply.github.com> Date: Thu, 7 Jul 2022 19:30:02 -0400 Subject: [PATCH] Disable player list in offline (#327) Prevent the playerlist from being rendered if the user is not online. --- BigBaseV2/src/views/players/view_players.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/BigBaseV2/src/views/players/view_players.cpp b/BigBaseV2/src/views/players/view_players.cpp index 19724b37..3d7bd788 100644 --- a/BigBaseV2/src/views/players/view_players.cpp +++ b/BigBaseV2/src/views/players/view_players.cpp @@ -69,6 +69,7 @@ namespace big void view::players() { + if (!*g_pointers->m_is_session_started) return; float window_pos = 110.f + g_gui_service->nav_ctr * ImGui::CalcTextSize("W").y + g_gui_service->nav_ctr * ImGui::GetStyle().ItemSpacing.y + g_gui_service->nav_ctr * ImGui::GetStyle().ItemInnerSpacing.y + ImGui::GetStyle().WindowPadding.y; ImGui::SetNextWindowSize({ 300.f, 0.f });