Skip to content

Commit

Permalink
Fix respawn timer on players when exiting Spectate
Browse files Browse the repository at this point in the history
  • Loading branch information
MrOats committed Jun 4, 2017
1 parent 9cd5689 commit 606d82d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AFKManager.as
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ final class AFK_Data
MessageWarnPlayer(pPlayer, "Moving you back to the game through respawn...");
isSpectate = false;
g_PlayerFuncs.RespawnPlayer(pPlayer, true, true);
g_AdminControl.KillPlayer(pPlayer, int(g_EngineFuncs.CVarGetFloat("mp_respawndelay")) );
g_AdminControl.KillPlayer(pPlayer, 0); /* Set to 0 because we don't want to add onto mp_respawndelay */

}

Expand Down

0 comments on commit 606d82d

Please sign in to comment.