fix: bots doesn't forgets unreachable items (ref #589)
crlib: update submodule
This commit is contained in:
parent
6f4e9d7765
commit
26e374d3f5
2 changed files with 3 additions and 2 deletions
|
|
@ -1 +1 @@
|
||||||
Subproject commit 5c4deafb4995064eb7ff5a5b718031c0071d6b06
|
Subproject commit 5b1079f6c7d1d9027836fd4a6f53059fc273c322
|
||||||
|
|
@ -3320,7 +3320,8 @@ void Bot::logic () {
|
||||||
}
|
}
|
||||||
|
|
||||||
// ensure we're not stuck destroying/picking something
|
// ensure we're not stuck destroying/picking something
|
||||||
if (m_navTimeset + getEstimatedNodeReachTime () + 1.0f < game.time () && !(m_states & Sense::SeeingEnemy) && m_moveToGoal) {
|
if (m_moveToGoal && rg (2.0f, 3.0f) + m_navTimeset + m_destOrigin.distanceSq2d (pev->origin) / m_moveSpeed < game.time ()
|
||||||
|
&& !(m_states & Sense::SeeingEnemy)) {
|
||||||
ensureEntitiesClear ();
|
ensureEntitiesClear ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue