fix(client_command): dead function

This commit is contained in:
Edo 2023-05-10 10:51:12 +01:00 committed by GitHub
parent 498002307c
commit ec566fc8ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,17 +33,6 @@ namespace
return true;
}
bool cheats_ok_internal(game::native::sp::gentity_s* ent)
{
if (ent->health < 1)
{
game::native::sp::SV_GameSendServerCommand(ent->s.number, "print \"GAME_MUSTBEALIVECOMMAND\"");
return false;
}
return true;
}
void cmd_noclip_f(game::native::gentity_s* ent, [[maybe_unused]] const command::params_sv& params)
{
if (!cheats_ok(ent))