summaryrefslogtreecommitdiff
path: root/src/fpsgame/aiman.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/fpsgame/aiman.h')
-rw-r--r--src/fpsgame/aiman.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/fpsgame/aiman.h b/src/fpsgame/aiman.h
index 120f50b..9c1598c 100644
--- a/src/fpsgame/aiman.h
+++ b/src/fpsgame/aiman.h
@@ -48,7 +48,6 @@ namespace aiman
}
if(bot)
{
- if(smode && bot->state.state==CS_ALIVE) smode->changeteam(bot, bot->team, t.team);
copystring(bot->team, t.team, MAXTEAMLEN+1);
sendf(-1, 1, "riisi", N_SETTEAM, bot->clientnum, bot->team, 0);
}
@@ -130,7 +129,6 @@ namespace aiman
{
int cn = ci->clientnum - MAXCLIENTS;
if(!bots.inrange(cn)) return;
- if(ci->ownernum >= 0 && !ci->aireinit && smode) smode->leavegame(ci, true);
sendf(-1, 1, "ri2", N_CDIS, ci->clientnum);
clientinfo *owner = (clientinfo *)getclientinfo(ci->ownernum);
if(owner) owner->bots.removeobj(ci);
@@ -167,7 +165,6 @@ namespace aiman
void shiftai(clientinfo *ci, clientinfo *owner = NULL)
{
- if(ci->ownernum >= 0 && !ci->aireinit && smode) smode->leavegame(ci, true);
clientinfo *prevowner = (clientinfo *)getclientinfo(ci->ownernum);
if(prevowner) prevowner->bots.removeobj(ci);
if(!owner) { ci->aireinit = 0; ci->ownernum = -1; }