From: Kaj-Michael Lang Date: Fri, 21 Mar 2008 18:39:51 +0000 (+0200) Subject: Don't announce waypoints unless _announce_waypoints==TRUE X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7521dcc7fa4492d7fac3d278684c3c9db57500f9;p=mapper Don't announce waypoints unless _announce_waypoints==TRUE --- diff --git a/src/route.c b/src/route.c index c84be28..d82d3bf 100644 --- a/src/route.c +++ b/src/route.c @@ -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))