ioq3quest/code
Zack Middleton 4474297af8 Fix bot team order to kill last player it killed
Bot's lastkilledplayer was set to -1 after carrying out an ordered kill.
Later in BotChat_Random() the PlayerName function was passed -1 which
caused a "Error: PlayerName: playernum out of range" message.

I think the reason it was set to negative one is so that if the bot is
ordered to kill the player again, the bot will not say it's done and
drop the goal. Though, if the bot killed the player based on it's own
decision, it will just say it's done and drop the goal (bug?).

Let's check the time of the last kill to see if it happened since the
team order was received instead of setting lastkilledplayer to -1
after completing the team ordered kill. This fixes bot dropping goal
if target player was the last player they killed and the PlayerName
out of range error.
2016-07-11 05:20:36 -05:00
..
AL 5882 - Update OpenAL Headers to OpenAL Soft 1.15.1 2013-02-17 07:34:41 -06:00
asm Remove unused fpucw from snapvector.asm 2015-07-09 18:35:45 -05:00
botlib Fix abs() being used for long int in l_precomp.c 2015-06-28 18:13:06 -05:00
cgame Fix glyph width calculation in Text_Paint_Limit 2015-09-15 16:56:03 -05:00
client Prevent CL_RunCinematic from reading cinTable[-1] 2016-06-15 13:58:26 -05:00
game Fix bot team order to kill last player it killed 2016-07-11 05:20:36 -05:00
jpeg-8c Mark JPEG lib changes, file provided by Simon McVittie 2012-07-01 18:07:56 +00:00
libcurl-7.35.0/curl Fix building with curl on Linux PPC and Sparc 2014-09-09 13:18:28 -04:00
libogg-1.3.1 Upgrade libogg 1.3.0 to 1.3.1 2014-02-08 03:38:01 +00:00
libs Rebuilt MSVC SDL 1.2.15 Revision 8040 import libs 2014-04-16 15:08:21 -05:00
libspeex Bug 5094 - Code cleanup, patch by Zack Middleton and DevHC. Fixes unused-but-set gcc warnings 2011-07-29 12:27:00 +00:00
libvorbis-1.3.4 There have been 0 days since the last compiler warning 2014-08-27 12:40:45 +01:00
null Remove unused functions from null_main.c and null_input.c 2014-08-27 20:35:16 -05:00
opus-1.1 Fix a few warnings 2014-08-30 17:29:23 +01:00
opusfile-0.5 Fix a few warnings 2014-08-30 17:29:23 +01:00
q3_ui Fix iamamonkey printing 'levels' instead of 'awards' 2016-05-23 10:23:14 -05:00
qcommon Missed this Cvar_Get() on com_introPlayed 2016-06-16 03:29:26 +02:00
renderercommon OpenGL2: Remove loading (unused) glDrawBuffersARB 2016-06-15 13:58:26 -05:00
renderergl1 Fix Makefile for OSX 2016-06-12 17:17:33 -04:00
renderergl2 OpenGL2: Remove duplicate textureFloat = qfalse 2016-06-15 13:58:26 -05:00
sdl Fix Makefile for OSX 2016-06-12 17:17:33 -04:00
SDL2/include Update SDL2 to 2.0.3 2014-03-24 19:13:56 -04:00
server Fix warnings that names passed to Name_PlayerNameCompletion is not const 2016-05-09 10:41:58 -05:00
sys Fix Makefile for OSX 2016-06-12 17:17:33 -04:00
tools Fix Makefile for OSX 2016-06-12 17:17:33 -04:00
ui Only play logo/intro if their filenames have been defined in q_shared.h 2016-06-16 03:01:21 +02:00
zlib drop some useless return statements 2013-05-30 15:43:21 -05:00