]> err.no Git - mapper/commitdiff
Don't announce waypoints unless _announce_waypoints==TRUE
authorKaj-Michael Lang <milang@tal.org>
Fri, 21 Mar 2008 18:39:51 +0000 (20:39 +0200)
committerKaj-Michael Lang <milang@tal.org>
Fri, 21 Mar 2008 18:39:51 +0000 (20:39 +0200)
src/route.c

index c84be286b797dd6718644b2c83aba2d7cb531295..d82d3bf669b3ac47bb77703262463586c720c03f 100644 (file)
@@ -81,6 +81,9 @@ guint announce_thres_unsquared;
 if (!gps)
        return;
 
+if (!_announce_waypoints)
+       return;
+
 announce_thres_unsquared=(20+(guint)gps->speed)*_announce_notice_ratio*3;
 
 if (_next_way_dist_squared < (announce_thres_unsquared * announce_thres_unsquared))