fix: bot: some static-analyzer warnings fixed

This commit is contained in:
jeefo 2023-06-07 23:31:03 +03:00
commit 64aa02955c
No known key found for this signature in database
GPG key ID: 927BCA0779BEA8ED
3 changed files with 2 additions and 5 deletions

View file

@ -1836,7 +1836,7 @@ void BotGraph::frame () {
m_learnPosition = m_editor->v.origin;
}
}
else if (((m_editor->v.flags & FL_ONGROUND) || m_editor->v.movetype == MOVETYPE_FLY) && m_timeJumpStarted + 0.1f < game.time () && m_endJumpPoint) {
else if (((m_editor->v.flags & FL_ONGROUND) || m_editor->v.movetype == MOVETYPE_FLY) && m_timeJumpStarted + 0.1f < game.time ()) {
add (NodeAddFlag::JumpEnd);
m_jumpLearnNode = false;