From 04ad73f5ea5611fccce42d74b406a7d36c68b578 Mon Sep 17 00:00:00 2001 From: Diavolo Date: Mon, 3 Apr 2023 21:54:00 +0200 Subject: [PATCH] fix: this function did not need to be patched. Oops --- src/client/component/dedicated_patches.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/client/component/dedicated_patches.cpp b/src/client/component/dedicated_patches.cpp index b535a7be..06c943ce 100644 --- a/src/client/component/dedicated_patches.cpp +++ b/src/client/component/dedicated_patches.cpp @@ -72,16 +72,6 @@ namespace dedicated_patches { return static_cast((*game::svs_clients)[client_num].xuid); } - - int sv_get_guid(int client_num) - { - if (client_num < 0 || client_num >= game::Dvar_GetInt(*game::com_maxclients)) - { - return 0; - } - - return (*game::svs_clients)[client_num].xuid; - } } struct component final : server_component @@ -109,7 +99,6 @@ namespace dedicated_patches utils::hook::jump(0x14052F0F5_g, 0x14052F139_g); utils::hook::call(0x1402853D7_g, sv_get_player_xuid_stub); // PlayerCmd_GetXuid - utils::hook::call(0x140283303_g, sv_get_guid); // PlayerCmd_GetGuid } }; }