Skip to content

Commit

Permalink
Merge pull request #678 from afischerdev/rework-voicehint
Browse files Browse the repository at this point in the history
Last message in track
  • Loading branch information
afischerdev committed Apr 3, 2024
2 parents 107a672 + 7f880a5 commit 7b176b4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions brouter-core/src/main/java/btools/router/OsmTrack.java
Expand Up @@ -345,6 +345,12 @@ public void appendTrack(OsmTrack t) {
if (i > 0 || ourSize == 0) {
e.setTime(e.getTime() + t0);
e.setEnergy(e.getEnergy() + e0);
if (e.message != null){
if (!(e.message.lon == e.getILon() && e.message.lat == e.getILat())) {
e.message.lon = e.getILon();
e.message.lat = e.getILat();
}
}
nodes.add(e);
}
}
Expand Down

0 comments on commit 7b176b4

Please sign in to comment.