]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Always force re-spawn in CA, fixes sitting as observer forever
authorMario <mario@smbclan.net>
Mon, 4 Jun 2018 05:18:03 +0000 (15:18 +1000)
committerMario <mario@smbclan.net>
Mon, 4 Jun 2018 05:18:03 +0000 (15:18 +1000)
qcsrc/server/mutators/mutator/gamemode_ca.qc

index 43ed39aea4924cee57ed841d68e0fe883f4e8429..49bd58bd8c3852266b4d77e2e7eca73ff3362189 100644 (file)
@@ -271,6 +271,7 @@ MUTATOR_HOOKFUNCTION(ca, PlayerDies)
                // prevent unwanted sudden rejoin as spectator and move of spectator camera
                frag_target.respawn_time = time + 2;
        }
+       frag_target.respawn_flags |= RESPAWN_FORCE;
        if (!warmup_stage)
                eliminatedPlayers.SendFlags |= 1;
        if(IS_BOT_CLIENT(frag_target))