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:
parent
7f9c98aef1
commit
f51d3bf13b
5 changed files with 56 additions and 4 deletions
|
|
@ -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 () {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue