fix: do not clean non-cmd buttons on IN_SCORE hook.

fix: reset search nodes when receiving team info message.
fix: clear bot args on every call to bot client command.
add: drone build scenario.
This commit is contained in:
dmitry 2020-07-08 13:03:27 +03:00
commit f51d3bf13b
5 changed files with 56 additions and 4 deletions

View file

@ -329,6 +329,13 @@ void MessageDispatcher::netMsgTeamInfo () {
// update player team
client.team2 = m_teamInfoCache[m_args[team].chars_]; // update real team
client.team = game.is (GameFlags::FreeForAll) ? m_args[index].long_ : client.team2;
auto bot = bots[client.ent];
// clear the routes so we're have no error in pathfinding in case team info update (respawn/change team)
if (bot) {
bot->clearSearchNodes ();
}
}
void MessageDispatcher::netMsgBarTime () {