From cbd5c6f55a540c1f87e322cb8595b0a4b2e00c90 Mon Sep 17 00:00:00 2001 From: Federico Cecchetto Date: Tue, 1 Mar 2022 21:38:00 +0100 Subject: [PATCH] Fix F10 button for server list --- src/client/component/game_console.cpp | 2 +- src/client/game/symbols.hpp | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/client/component/game_console.cpp b/src/client/component/game_console.cpp index e4189453..289a07a8 100644 --- a/src/client/component/game_console.cpp +++ b/src/client/component/game_console.cpp @@ -555,7 +555,7 @@ namespace game_console { if (key == game::keyNum_t::K_F10) { - if (game::mp::svs_clients[local_client_num].header.state >= 1) + if (!game::Com_InFrontEnd()) { return false; } diff --git a/src/client/game/symbols.hpp b/src/client/game/symbols.hpp index d82ee023..62995ea4 100644 --- a/src/client/game/symbols.hpp +++ b/src/client/game/symbols.hpp @@ -20,8 +20,9 @@ namespace game WEAK symbol AimAssist_AddToTargetList{0, 0x14009D0F0}; - WEAK symbol Com_Frame_Try_Block_Function{0, 0x1400D8310}; + WEAK symbol Com_Frame_Try_Block_Function{0x1401CE8D0, 0x1400D8310}; WEAK symbol Com_GetCurrentCoDPlayMode{0, 0x1405039A0}; + WEAK symbol Com_InFrontEnd{0x1400E4B30, 0x140176A30}; WEAK symbol Com_SetSlowMotion{0, 0x1400DB790}; WEAK symbol Com_Error{0x1403509C0, 0x1400D78A0}; WEAK symbol Com_Quit_f{0x140352BE0, 0x1400DA830}; @@ -58,7 +59,7 @@ namespace game WEAK symbol G_Glass_Update{0, 0x14033A640}; WEAK symbol G_GetClientScore{0, 0x140342F90}; - WEAK symbol I_CleanStr{0x1403CD230, 0x140503D00}; + WEAK symbol I_CleanStr{0x1403CD230, 0x140503D00}; WEAK symbol Key_KeynumToString{0x140187CC0, 0x14024FE10};