make sure client number converting doesn't become an infinite loop

This commit is contained in:
Bill Currie 2005-01-02 14:27:26 +00:00
parent a97652dccf
commit 25f6b353f7
3 changed files with 5 additions and 3 deletions

View file

@ -47,6 +47,7 @@ this notice in its entirety.
float stagger_think;
@implementation Bot (AI)
/*
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
@ -519,7 +520,6 @@ the bot finds things it wants to kill/grab.
// 50 - 90 bot will hunt these as vital items
// *!* Make sure you add code to checkLost to remove the target *!*
-(integer)priority:(Bot)bot
{
local integer p;

View file

@ -256,7 +256,9 @@ ClientNumber =
do {
f++;
e = nextent (e);
} while (e != cl);
} while (f < 33 && e != cl);
if (f == 33)
Break ();
return f;
};

View file

@ -55,7 +55,7 @@ integer bot_way_linker;
if (current_way == what)
current_way = NIL;
[waypoint_array removeItem:what];
[what free];
[what dealloc];
}
/*