Commit 95f121e8 authored by Benedikt Kleinmeier's avatar Benedikt Kleinmeier
Browse files

In "OSMBehaviorController", added TODO and commented out code to avoid...

In "OSMBehaviorController", added TODO and commented out code to avoid "AssertionError" in LinkedCellGrid.
parent e288cfa1
Pipeline #103982 passed with stages
in 118 minutes and 29 seconds
......@@ -208,12 +208,15 @@ public class OSMBehaviorController {
}
private void swapPedestrians(Pedestrian pedestrian1, Pedestrian pedestrian2) {
// TODO Use "makeStep()" to swap both pedestrians.
// TODO Use "makeStep()" to swap both pedestrians to avoid
// "java.lang.AssertionError: Number of pedestrians in LinkedCellGrid does not match number of pedestrians in topography".
/*
VPoint newPosition = pedestrian2.getPosition().clone();
VPoint oldPosition = pedestrian1.getPosition().clone();
pedestrian1.setPosition(newPosition);
pedestrian2.setPosition(oldPosition);
*/
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment