mirror of
https://github.com/rehlds/rehlds.git
synced 2025-01-04 02:55:50 +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();
|
Cmd_ForwardToServer();
|
||||||
return;
|
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");
|
SV_ClientPrintf("Can't suicide -- already dead!\n");
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user