mirror of
https://github.com/noncomputable/AgentMaps.git
synced 2026-01-25 16:46:38 +00:00
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:
parent
a870b3aacd
commit
7104bef11f
@ -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();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user