lilium-voyager/code/game
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
..
ai_chat.c Only have bots issue vtaunt commands in Team Arena. 2012-06-18 20:11:09 +00:00
ai_chat.h * Added STATUS 2005-10-29 01:53:09 +00:00
ai_cmd.c fix null termination out of array bounds 2007-08-19 12:11:39 +00:00
ai_cmd.h * Added STATUS 2005-10-29 01:53:09 +00:00
ai_dmnet.c Fix bot team order to kill last player it killed 2016-07-11 05:20:36 -05:00
ai_dmnet.h * Added STATUS 2005-10-29 01:53:09 +00:00
ai_dmq3.c Add a comment about non-functional bot code 2015-03-23 20:36:27 -05:00
ai_dmq3.h REFACTOR [a vs an] 2012-06-18 16:31:16 +00:00
ai_main.c Fix typo of empty in ai_main.c 2016-06-27 21:13:27 -05:00
ai_main.h Fix bot's teamleader name field being too short 2014-12-04 16:50:28 -06:00
ai_team.c Fix game warnings 2014-09-01 11:09:11 +01:00
ai_team.h * Added STATUS 2005-10-29 01:53:09 +00:00
ai_vcmd.c Fix more warnings 2014-09-01 13:03:06 +01:00
ai_vcmd.h * Added STATUS 2005-10-29 01:53:09 +00:00
bg_lib.c More intelligent exponentiation in strtod/strtol (#5487) - patch by Ben Millwood 2012-07-01 16:43:28 +00:00
bg_lib.h - Merge http://svn.icculus.org/tremulous?view=rev&revision=2185, patch by Chris Schwarz 2011-06-15 15:31:37 +00:00
bg_local.h Code cleanup patch by devhc 2011-02-08 18:19:31 +00:00
bg_misc.c Fix a few warnings 2014-08-30 17:29:23 +01:00
bg_pmove.c Fix (unused) watertype checks in PM_WaterMove 2015-07-30 19:33:28 -05:00
bg_public.h REFACTOR [reletive -> relative] 2012-06-18 16:32:03 +00:00
bg_slidemove.c Bug 5094 - Code cleanup, patch by Zack Middleton and DevHC. Fixes unused-but-set gcc warnings 2011-07-29 12:27:00 +00:00
chars.h http://www.angryflower.com/aposter.html 2011-02-09 05:51:33 +00:00
g_active.c Patches by symlink. 2012-02-06 21:28:40 +00:00
g_arenas.c Bugzilla #4753 2010-10-25 06:39:11 +00:00
g_bot.c Fix parsing bots in arena info with trailing spaces 2015-01-12 21:28:03 -06:00
g_client.c Bunch of comment fixes 2014-03-13 02:20:54 +01:00
g_cmds.c When player stops following a player, keep view angles 2014-12-19 22:09:26 -06:00
g_combat.c Bunch of comment fixes 2014-03-13 02:20:54 +01:00
g_items.c Fix more warnings 2014-09-01 13:03:06 +01:00
g_local.h Correct TeamCount return type and team argument type 2013-04-26 15:46:12 -05:00
g_main.c Fix cg.intermissionStarted only being enabled at first intermission 2014-12-27 18:32:49 -06:00
g_mem.c add a missing '\n', remove some unwanted ones 2012-06-18 16:16:57 +00:00
g_misc.c Batch of bug fixes for gamecode. Patch compiled and log message written by Tobias Kuehnhammer (#5144) 2011-08-01 11:39:33 +00:00
g_missile.c Fix grenade rotation ends always the orientation (#5053), patch by Eugene C. 2011-06-24 13:15:03 +00:00
g_mover.c Fix a few warnings 2014-08-30 17:29:23 +01:00
g_public.h Refactoring patch by DevHC 2011-05-11 14:21:27 +00:00
g_rankings.c * Added STATUS 2005-10-29 01:53:09 +00:00
g_rankings.h * Added STATUS 2005-10-29 01:53:09 +00:00
g_session.c Don't have g_teamAutoJoin affect bot's team 2012-09-08 22:32:41 +00:00
g_spawn.c REFACTOR 2012-06-18 16:27:00 +00:00
g_svcmds.c Fix a few warnings 2014-08-30 17:29:23 +01:00
g_syscalls.asm rename trap_Printf() to trap_Print() in the game module, as that function has nothing to do with printf()-like formatting 2012-06-19 14:51:02 +00:00
g_syscalls.c Fix native trap_BotMutateGoalFuzzyLogic 2014-03-02 22:53:15 -06:00
g_target.c REFACTOR [reletive -> relative] 2012-06-18 16:32:03 +00:00
g_team.c Send team info for team overlay to spectators for the team of the client they're following (bug #5740). 2012-09-08 23:19:06 +00:00
g_team.h Bug 5094 - Code cleanup, patch by Zack Middleton and DevHC. Fixes unused-but-set gcc warnings 2011-07-29 12:27:00 +00:00
g_trigger.c Removed duplicate setting of contents for trigger_hurt. 2011-11-28 17:36:58 +00:00
g_utils.c * Added STATUS 2005-10-29 01:53:09 +00:00
g_weapon.c Let's actually use MOD_CHAINGUN! From Ensiform. 2012-06-18 17:12:35 +00:00
inv.h * Added STATUS 2005-10-29 01:53:09 +00:00
match.h * Added STATUS 2005-10-29 01:53:09 +00:00
syn.h * Added STATUS 2005-10-29 01:53:09 +00:00