mirror of
https://git.code.sf.net/p/quake/game-source
synced 2025-04-02 05:41:00 +00:00
make sure client number converting doesn't become an infinite loop
This commit is contained in:
parent
a97652dccf
commit
25f6b353f7
3 changed files with 5 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -256,7 +256,9 @@ ClientNumber =
|
|||
do {
|
||||
f++;
|
||||
e = nextent (e);
|
||||
} while (e != cl);
|
||||
} while (f < 33 && e != cl);
|
||||
if (f == 33)
|
||||
Break ();
|
||||
return f;
|
||||
};
|
||||
|
||||
|
|
|
@ -55,7 +55,7 @@ integer bot_way_linker;
|
|||
if (current_way == what)
|
||||
current_way = NIL;
|
||||
[waypoint_array removeItem:what];
|
||||
[what free];
|
||||
[what dealloc];
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue