2
0
mirror of https://github.com/rehlds/rehlds.git synced 2025-03-24 03:10:40 +03:00

Merge pull request #313 from WPMGPRoSToTeMa/patch-1

Additional dead check for kill command handler
This commit is contained in:
theAsmodai 2017-01-21 14:21:04 +03:00 committed by GitHub
commit 88423ad93c

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;