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:
parent
b6fe0ac31f
commit
f967c5db95
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user