From a89dca11cf475e0bd1399cf5d5c5135d00495ec3 Mon Sep 17 00:00:00 2001 From: xolatile Date: Mon, 4 Aug 2025 18:17:30 +0200 Subject: Minor changes... --- src/fpsgame/aiman.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/fpsgame/aiman.h') 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; } -- cgit v1.2.3