New diff:
--- route.c 25 Mar 2003 23:00:58 -0000 1.16
+++ route.c 11 Feb 2004 05:31:14 -0000
@@ -165,6 +165,11 @@
if (buf[len-1] == ' ') buf[--len] = '\0';
route.pts.x = strtol(p, &p, 10);
route.pts.y = strtol(p, &p, 10);
+ if (i && (route.pts.x == route.pts[i-1].x) &&
+ (route.pts.y == route.pts[i-1].y)) {
+ i--;
+ route.npts--;
+ }
if (p < buf + len) {
if (j == route.nwps) {
err("Too many waypoints?");
@@ -383,8 +388,10 @@
if (turn < 0.0) {
heading = "LEFT";
turn = -turn;
- } else
+ } else if (turn > 0.0) {
heading = "RIGHT";
+ } else
+ heading = "";

strong = turn > 130 ? "sharply " : "";

New binary: attached.


Attachments
202498-gpsapp (255 downloads)