mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-12-12 21:22:14 +00:00
4474297af8
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. |
||
---|---|---|
.. | ||
AL | ||
asm | ||
botlib | ||
cgame | ||
client | ||
game | ||
jpeg-8c | ||
libcurl-7.35.0/curl | ||
libogg-1.3.1 | ||
libs | ||
libspeex | ||
libvorbis-1.3.4 | ||
null | ||
opus-1.1 | ||
opusfile-0.5 | ||
q3_ui | ||
qcommon | ||
renderercommon | ||
renderergl1 | ||
renderergl2 | ||
sdl | ||
SDL2/include | ||
server | ||
sys | ||
tools | ||
ui | ||
zlib |