0
0
Fork 0
mirror of https://git.code.sf.net/p/quake/game-source synced 2025-04-08 08:40:49 +00:00

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
This commit is contained in:
Bill Currie 2003-02-21 15:12:42 +00:00
parent 6503dc6c16
commit 28b1cc48b7

View file

@ -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