fixed replace_trip bug, which started a new trip from the end of the previous schedule instead of from the current position

This commit is contained in:
noncomputable 2018-09-12 20:50:29 -04:00
parent a870b3aacd
commit 7104bef11f

View File

@ -193,6 +193,7 @@ Agent.setTravelToPlace = function(goal_lat_lng, goal_place, speed = 1, move_dire
goal_lat_lng = L.latLng(goal_lat_lng);
if (replace_trip === true) {
start_place = this.place;
this.resetTrip();
}