]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/mutators/mutator/gamemode_ctf.qc
Clean up some SELFPARAMs
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / mutators / mutator / gamemode_ctf.qc
index cf6bd6b2cfafe951f205070f72923d2f0464b8a3..366011b2971b50f12e2683315bb21556707d057f 100644 (file)
@@ -2372,7 +2372,7 @@ MUTATOR_HOOKFUNCTION(ctf, GetRecords)
        M_ARGV(1, string) = ret_string;
 }
 
-bool superspec_Spectate(entity _player); // TODO
+bool superspec_Spectate(entity this, entity targ); // TODO
 void superspec_msg(string _center_title, string _con_title, entity _to, string _msg, float _spamlevel); // TODO
 MUTATOR_HOOKFUNCTION(ctf, SV_ParseClientCommand)
 {
@@ -2407,7 +2407,7 @@ MUTATOR_HOOKFUNCTION(ctf, SV_ParseClientCommand)
                                found = true;
                                if(_team == 0 && IS_SPEC(player) && player.enemy == it)
                                        continue; // already spectating this fc, try another
-                               return superspec_Spectate(it);
+                               return superspec_Spectate(player, it);
                        }
                ));