]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix flipped g_ca_spectate_enemies
authorz411 <z411@omaera.org>
Mon, 17 Oct 2022 21:07:39 +0000 (18:07 -0300)
committerz411 <z411@omaera.org>
Mon, 17 Oct 2022 21:16:38 +0000 (18:16 -0300)
qcsrc/common/gamemodes/gamemode/clanarena/sv_clanarena.qc

index 0d85af8cf099b895b527acd3aaffcc3c0de5ad0c..4bfc47c7d8962bf6ceb4feaca5301416d3348077 100644 (file)
@@ -509,7 +509,7 @@ MUTATOR_HOOKFUNCTION(ca, SpectateSet)
        entity client = M_ARGV(0, entity);
        entity targ = M_ARGV(1, entity);
 
-       if (autocvar_g_ca_spectate_enemies != 0 && INGAME(client))
+       if (autocvar_g_ca_spectate_enemies != 1 && INGAME(client))
        if (DIFF_TEAM(targ, client))
                return true;
 }
@@ -518,7 +518,7 @@ MUTATOR_HOOKFUNCTION(ca, SpectateNext)
 {
        entity client = M_ARGV(0, entity);
 
-       if (autocvar_g_ca_spectate_enemies != 0 && INGAME(client)
+       if (autocvar_g_ca_spectate_enemies != 1 && INGAME(client)
                && Team_GetNumberOfAlivePlayers(Entity_GetTeam(client)))
        {
                entity targ = M_ARGV(1, entity);
@@ -533,7 +533,7 @@ MUTATOR_HOOKFUNCTION(ca, SpectatePrev)
        entity targ = M_ARGV(1, entity);
        entity first = M_ARGV(2, entity);
 
-       if (autocvar_g_ca_spectate_enemies != 0 && INGAME(client)
+       if (autocvar_g_ca_spectate_enemies != 1 && INGAME(client)
                && Team_GetNumberOfAlivePlayers(Entity_GetTeam(client)))
        {
                do { targ = targ.chain; }