Update Recast navigation lib to e75adf86f91eb3082220085e42dda62679f9a3ea

This commit is contained in:
Wojtek Figat
2021-03-01 14:31:28 +01:00
parent 21d96c6baf
commit 8f633523cd
12 changed files with 416 additions and 252 deletions

View File

@@ -1409,12 +1409,14 @@ void dtCrowd::update(const float dt, dtCrowdAgentDebugInfo* debug)
}
// Update agents using off-mesh connection.
for (int i = 0; i < m_maxAgents; ++i)
for (int i = 0; i < nagents; ++i)
{
dtCrowdAgentAnimation* anim = &m_agentAnims[i];
dtCrowdAgent* ag = agents[i];
const int idx = (int)(ag - m_agents);
dtCrowdAgentAnimation* anim = &m_agentAnims[idx];
if (!anim->active)
continue;
dtCrowdAgent* ag = agents[i];
anim->t += dt;
if (anim->t > anim->tmax)