From 7104bef11f7038cd1fa224db21144cdc393aec69 Mon Sep 17 00:00:00 2001 From: noncomputable Date: Wed, 12 Sep 2018 20:50:29 -0400 Subject: [PATCH] fixed replace_trip bug, which started a new trip from the end of the previous schedule instead of from the current position --- src/agents.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/agents.js b/src/agents.js index 4dd8a3d..5736a49 100644 --- a/src/agents.js +++ b/src/agents.js @@ -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(); }