From ec566fc8ae861a9b9f30ac1ea32ef7c57b71b30f Mon Sep 17 00:00:00 2001 From: Edo Date: Wed, 10 May 2023 10:51:12 +0100 Subject: [PATCH] fix(client_command): dead function --- src/module/client_command.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/module/client_command.cpp b/src/module/client_command.cpp index c3c388f..b8e80f9 100644 --- a/src/module/client_command.cpp +++ b/src/module/client_command.cpp @@ -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))