Skip to content
Permalink
Browse files

- Fixed conditions tested for when checking whether "Force respawn" o…

…r "Respawn protection" dmflags are enabled
  • Loading branch information...
Player701 authored and madame-rachelle committed Apr 14, 2019
1 parent 8ab6747 commit ad23726cb64ee8810486cbb76daf6f8e0e8837f4
Showing with 2 additions and 2 deletions.
  1. +2 −2 wadsrc/static/zscript/actors/player/player.zs
@@ -231,7 +231,7 @@ class PlayerPawn : Actor

virtual void OnRespawn()
{
if (sv_respawnprotect && (multiplayer || alwaysapplydmflags))
if (sv_respawnprotect && (deathmatch || alwaysapplydmflags))
{
let invul = Powerup(Spawn("PowerInvulnerable"));
invul.EffectTics = 3 * TICRATE;
@@ -718,7 +718,7 @@ class PlayerPawn : Actor
}

if ((player.cmd.buttons & BT_USE ||
((multiplayer || alwaysapplydmflags) && sv_forcerespawn)) && !sv_norespawn)
((deathmatch || alwaysapplydmflags) && sv_forcerespawn)) && !sv_norespawn)
{
if (Level.maptime >= player.respawn_time || ((player.cmd.buttons & BT_USE) && player.Bot == NULL))
{

0 comments on commit ad23726

Please sign in to comment.
You can’t perform that action at this time.