]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Clan Arena, warmup stage: fix bots standing still after their first death; don't...
authorterencehill <piuntn@gmail.com>
Mon, 18 Jun 2018 12:56:32 +0000 (14:56 +0200)
committerterencehill <piuntn@gmail.com>
Mon, 18 Jun 2018 12:56:32 +0000 (14:56 +0200)
qcsrc/common/gamemodes/gamemode/clanarena/clanarena.qc

index 561129c7db70619c5636ed09f062ee0cc44dcadf..98f75aaa20cc4db67de5b0bf0e10c9bdb3db146e 100644 (file)
@@ -253,8 +253,7 @@ entity ca_LastPlayerForTeam(entity this)
 
 void ca_LastPlayerForTeam_Notify(entity this)
 {
-       if (round_handler_IsActive())
-       if (round_handler_IsRoundStarted())
+       if (!warmup_stage && round_handler_IsActive() && round_handler_IsRoundStarted())
        {
                entity pl = ca_LastPlayerForTeam(this);
                if (pl)
@@ -275,9 +274,11 @@ MUTATOR_HOOKFUNCTION(ca, PlayerDies)
        }
        frag_target.respawn_flags |= RESPAWN_FORCE;
        if (!warmup_stage)
+       {
                eliminatedPlayers.SendFlags |= 1;
-       if(IS_BOT_CLIENT(frag_target))
-               bot_clear(frag_target);
+               if (IS_BOT_CLIENT(frag_target))
+                       bot_clear(frag_target);
+       }
        return true;
 }