From 04856caf05f04e7d2fc0f13705523616dea8383b Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Mon, 29 May 2023 21:13:28 +0200 Subject: [PATCH] Display and host using playlists instead of gamemode This should show the actual playlist rather than the gamemode. --- r5dev/engine/host_state.cpp | 2 +- r5dev/gameui/IBrowser.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/r5dev/engine/host_state.cpp b/r5dev/engine/host_state.cpp index ef12067c..79a5a6a0 100644 --- a/r5dev/engine/host_state.cpp +++ b/r5dev/engine/host_state.cpp @@ -289,7 +289,7 @@ void CHostState::Think(void) const hostdesc->GetString(), sv_pylonVisibility->GetInt() == EServerVisibility_t::HIDDEN, g_pHostState->m_levelName, - mp_gamemode->GetString(), + KeyValues_GetCurrentPlaylist(), hostip->GetString(), hostport->GetString(), g_pNetKey->GetBase64NetKey(), diff --git a/r5dev/gameui/IBrowser.cpp b/r5dev/gameui/IBrowser.cpp index 32a6ce4b..bcea5e16 100644 --- a/r5dev/gameui/IBrowser.cpp +++ b/r5dev/gameui/IBrowser.cpp @@ -736,7 +736,7 @@ void CBrowser::UpdateHostingStatus(void) g_pServerListManager->m_Server.m_svDescription, g_pServerListManager->m_Server.m_bHidden, g_pHostState->m_levelName, - mp_gamemode->GetString(), + KeyValues_GetCurrentPlaylist(), hostip->GetString(), hostport->GetString(), g_pNetKey->GetBase64NetKey(),