Skip to content

Commit

Permalink
check if player death time is the default death time (NeotokyoRebuild…
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamTadeusz authored Oct 8, 2024
1 parent f0f6c3d commit 1eb3f15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mp/src/game/server/neo/neo_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ bool RespawnWithRet( CBaseEntity *pEdict, bool fCopyCorpse )

if ( pPlayer )
{
if ( gpGlobals->curtime > pPlayer->GetDeathTime() + DEATH_ANIMATION_TIME )
if ( (gpGlobals->curtime > pPlayer->GetDeathTime() + DEATH_ANIMATION_TIME) || pPlayer->GetDeathTime() == 0.f)
{
if (NEORules()->FPlayerCanRespawn(pPlayer))
{
Expand Down

0 comments on commit 1eb3f15

Please sign in to comment.