nav: improved ladder handling

fix: bots can stuck when destroying breakables
This commit is contained in:
jeefo 2024-03-29 16:46:32 +03:00
commit c5ed52eb09
No known key found for this signature in database
GPG key ID: 927BCA0779BEA8ED
5 changed files with 27 additions and 17 deletions

View file

@ -1459,6 +1459,9 @@ void Bot::shootBreakable_ () {
m_checkTerrain = true;
m_moveToGoal = true;
m_breakableOrigin = nullptr;
m_breakableEntity = nullptr;
completeTask ();
}
}