From: z411 Date: Mon, 17 Oct 2022 21:07:39 +0000 (-0300) Subject: Fix flipped g_ca_spectate_enemies X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ad08f887f8a47b99500178c5b2b178b79bc8dc56;p=xonotic%2Fxonotic-data.pk3dir.git Fix flipped g_ca_spectate_enemies --- diff --git a/qcsrc/common/gamemodes/gamemode/clanarena/sv_clanarena.qc b/qcsrc/common/gamemodes/gamemode/clanarena/sv_clanarena.qc index 0d85af8cf..4bfc47c7d 100644 --- a/qcsrc/common/gamemodes/gamemode/clanarena/sv_clanarena.qc +++ b/qcsrc/common/gamemodes/gamemode/clanarena/sv_clanarena.qc @@ -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; }