fix final step of get-paths-even-timed for cases (e.g. offshore-races) where the simulation time-step is large compared to the even-timing time-step (currently always 15sec);

This commit is contained in:
Christopher Ronnewinkel (D036654) committed 2015-07-20 15:14:59 +02:00
1 parent dfb75732c9
commit b4dc012351
1 file changed
+2 -1
@@ -132,7 +132,8 @@ public class PathImpl implements Path, Serializable {
if ((this.pathPoints.get(idx).getTimePoint().asMillis() >= nextTimePoint.asMillis())||(idx == this.pathPoints.size()-1)) {
if (idx == this.pathPoints.size()-1) {
// for the last step, next-time-point needs to be aligned to the time-range of the course
if (nextTimePoint.after(endTime)) {
nextTimePoint = endTime;
}