Skip to content

Conversation

@kzerse
Copy link

@kzerse kzerse commented Aug 30, 2018

in Update(dt), GetActiveAgents(agents) can causes Crowd.agents's element replace that is unexpected.

I think, maybe, activeAgents should be used instead modifying agents.

kzerse added 2 commits August 30, 2018 19:53
in Update(dt), GetActiveAgents(agents) can causes Crowd.agents's element replace that is unexpected.

I think, maybe, activeAgents should be used instead modifying agents.
fix unexpected ArgumentOutOfRangeException
agents[i].State = AgentState.Offmesh;
agents[i].Corners.Clear();
agents[i].NeighborCount = 0;
agentAnims[idx].InitPos = activeAgents[i].Position;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you revert these whitespace changes? Should be consistent with the rest of the file

//store visited
for (int i = 0; i < req; i++)
path[i] = visited[(visited.Count - 1) - i];
{
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here, whitespace of these new lines does not match the spacing of the rest of the file.

@Robmaister
Copy link
Owner

I haven't really done much with this project in a while. If there's something that Recast has done to fix this, I'd recommend following suit.

I'll take your word that it works, I haven't set up tests for the crowd stuff and don't really think I'll have time to do so in the near future.

If you clean up the whitespace issues I commented on, I'll merge this in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants