From 28b1cc48b7df8909d2d62641efa03b0a798ab5dc Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Fri, 21 Feb 2003 15:12:42 +0000 Subject: [PATCH] bring back the player linked list. rather vital for getting frikbot to pay attention to you. also brings back the runaway loop, but I know how to fix that --- fbxa/bot_qw.qc | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/fbxa/bot_qw.qc b/fbxa/bot_qw.qc index da28188..6c3396d 100644 --- a/fbxa/bot_qw.qc +++ b/fbxa/bot_qw.qc @@ -444,11 +444,9 @@ void() ClientFixRankings = void() ClientInRankings = { local float cno; - //FIXME meant to spead up bot AI for low bot/player counts, but it's - //currently pooched - //if (player_head) - // player_head._last = self; - //self._next = player_head; + if (player_head) + player_head._last = self; + self._next = player_head; player_head = self; userid = userid + 1; self.b_userid = userid; @@ -480,15 +478,12 @@ void() ClientInRankings = void() ClientDisconnected = { - //FIXME meant to spead up bot AI for low bot/player counts, but it's - //currently pooched - //if (player_head == self) - // player_head = self._next; - //if (self._next) - // self._next._last = self._last; - //if (self._last) - // self._last._next = self._next; - //self._last = self._next = NIL; + if (player_head == self) + player_head = self._next; + if (self._next) + self._next._last = self._last; + if (self._last) + self._last._next = self._next; if(self.b_clientno > 16) active_clients2 = active_clients2 - (active_clients2 & ClientBitFlag(self.b_clientno - 16)); else