fix: this function did not need to be patched. Oops

This commit is contained in:
Diavolo 2023-04-03 21:54:00 +02:00 committed by Maurice Heumann
parent 45b1462dca
commit 04ad73f5ea

View File

@ -72,16 +72,6 @@ namespace dedicated_patches
{
return static_cast<uint64_t>((*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
}
};
}