X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fserver%2Fmutators%2Fmutator_superspec.qc;h=8f289e5c3b5e0f5821b0df4bc5b99ecbb3c7da2e;hp=a5fb0e8011aec4afc41397ecf28979cb9c24c9da;hb=1633673cc6c65bdca0120f2a4fc33e8c2449f06d;hpb=f4803dbafcdd9f29092535640728e3de19a987da diff --git a/qcsrc/server/mutators/mutator_superspec.qc b/qcsrc/server/mutators/mutator_superspec.qc index a5fb0e8011..8f289e5c3b 100644 --- a/qcsrc/server/mutators/mutator_superspec.qc +++ b/qcsrc/server/mutators/mutator_superspec.qc @@ -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) @@ -443,6 +443,9 @@ void superspec_hello() MUTATOR_HOOKFUNCTION(superspec_ClientConnect) { + if(clienttype(self) != CLIENTTYPE_REAL) + return FALSE; + string fn = "superspec-local.options"; float fh;