Skip to content

Commit

Permalink
fixes #3419
Browse files Browse the repository at this point in the history
use directly the location of the agent to set the source of the path rather than the "supposed' location (to avoid rounding issue).
  • Loading branch information
ptaillandier committed May 13, 2022
1 parent a505ed6 commit 7f5f1a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion msi.gama.core/src/msi/gaml/skills/MovingSkill.java
Expand Up @@ -1352,7 +1352,7 @@ private void moveToNextLocAlongPathSimplified(final IScope scope, final IAgent a
setCurrentEdge(agent, path);
setLocation(agent, currentLocation);
setHeading(agent, computedHeading);
path.setSource(currentLocation/* .copy(scope) */);
path.setSource(agent.getLocation()/* .copy(scope) */);

}

Expand Down

0 comments on commit 7f5f1a5

Please sign in to comment.