From f967c5db95b4e53d91f11f922e4e531561947df0 Mon Sep 17 00:00:00 2001 From: Artem Golubikhin Date: Sat, 21 Jan 2017 04:29:06 +0300 Subject: [PATCH] Additional dead check for kill command handler --- rehlds/engine/host_cmd.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/rehlds/engine/host_cmd.cpp b/rehlds/engine/host_cmd.cpp index 3bf96c6..c12a837 100644 --- a/rehlds/engine/host_cmd.cpp +++ b/rehlds/engine/host_cmd.cpp @@ -2607,7 +2607,12 @@ void Host_Kill_f(void) Cmd_ForwardToServer(); return; } - if (sv_player->v.health <= 0.0f) + + if (sv_player->v.health <= 0.0f +#ifdef REHLDS_FIXES + || sv_player->v.deadflag != DEAD_NO +#endif + ) { SV_ClientPrintf("Can't suicide -- already dead!\n"); return;