]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/cl_client.qc
Revert "Merge branch 'TimePath/bot_api' into 'master'\r"
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / cl_client.qc
index 127080323dbbab27dffc3cbaa47592f6f1f94999..71efa5f9d931233f32899305692f023ceaea5d96 100644 (file)
@@ -20,7 +20,8 @@
 #include "campaign.qh"
 #include "command/common.qh"
 
-#include "bot/api.qh"
+#include "bot/bot.qh"
+#include "bot/navigation.qh"
 
 #include "../common/vehicles/all.qh"
 
@@ -1215,7 +1216,7 @@ void ClientConnect (void)
        else
                stuffcmd(self, "set _teams_available 0\n");
 
-       attach_entcs();
+       attach_entcs(self);
 
        bot_relinkplayerlist();
 
@@ -1301,8 +1302,7 @@ void ClientDisconnect (void)
 
        bot_clientdisconnect();
 
-       if(self.entcs)
-               detach_entcs();
+       detach_entcs(self);
 
        if(autocvar_sv_eventlog)
                GameLogEcho(strcat(":part:", ftos(self.playerid)));