2
0
mirror of https://github.com/rehlds/rehlds.git synced 2025-01-01 01:25:38 +03:00

Additional dead check for kill command handler

This commit is contained in:
Artem Golubikhin 2017-01-21 04:29:06 +03:00 committed by GitHub
parent b6fe0ac31f
commit f967c5db95

View File

@ -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;