]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix bots added after round start will never join the game
authorterencehill <piuntn@gmail.com>
Tue, 10 Jan 2012 21:45:36 +0000 (22:45 +0100)
committerterencehill <piuntn@gmail.com>
Tue, 10 Jan 2012 21:45:36 +0000 (22:45 +0100)
qcsrc/server/cl_client.qc

index 09b2b2aac60bd4dc7b7a759e05b5a3afa5665547..f3f1d45e6617d6bfc897cfce68e1a8db92ad12a5 100644 (file)
@@ -648,6 +648,8 @@ void PutClientInServer (void)
        if(clienttype(self) == CLIENTTYPE_BOT)
        {
                self.classname = "player";
+               if(g_ca)
+                       self.caplayer = 1;
        }
        else if(clienttype(self) == CLIENTTYPE_REAL)
        {