mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +00:00
- Fixed conditions tested for when checking whether "Force respawn" or "Respawn protection" dmflags are enabled
This commit is contained in:
parent
8ab6747d77
commit
ad23726cb6
1 changed files with 2 additions and 2 deletions
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue