]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
When a CA player is spectating but still in game, on command join don't even try...
authorterencehill <piuntn@gmail.com>
Fri, 24 Jan 2014 19:21:24 +0000 (20:21 +0100)
committerterencehill <piuntn@gmail.com>
Fri, 24 Jan 2014 19:21:24 +0000 (20:21 +0100)
qcsrc/server/command/cmd.qc

index e68cf8bfa8208731a9315037f32fb7e89f3336e3..5de404e311d0df9b3ef2177926ca0b18d8b67eef 100644 (file)
@@ -152,6 +152,8 @@ void ClientCommand_join(float request)
                        {
                                if(!IS_PLAYER(self) && !lockteams)
                                {
+                                       if(self.caplayer)
+                                               return;
                                        if(nJoinAllowed(self))
                                        {
                                                if(autocvar_g_campaign) { campaign_bots_may_start = 1; }