]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/mutators/mutator_superspec.qc
Superspec mutator shouldn't call SpectateNext as it may lead to spectate an unwanted...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / mutators / mutator_superspec.qc
index a5fb0e8011aec4afc41397ecf28979cb9c24c9da..16aa80cabcf2c3e08f2e7aef7f695f855b8d081c 100644 (file)
@@ -21,7 +21,7 @@
 
 float _spectate(entity _player)
 {
-       if(SpectateNext(_player) == 1)
+       if(Spectate(_player) == 1)
        {
                PutObserverInServer();
                self.classname = "spectator";
@@ -392,9 +392,9 @@ MUTATOR_HOOKFUNCTION(superspec_SV_ParseClientCommand)
                if(cmd_argc == 2)
                {
                        if(argv(1) == "red")
-                               _team = FL_TEAM_1;
+                               _team = NUM_TEAM_1;
                        else
-                               _team = FL_TEAM_2;
+                               _team = NUM_TEAM_2;
                }
 
                FOR_EACH_PLAYER(_player)