From 7521dcc7fa4492d7fac3d278684c3c9db57500f9 Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Fri, 21 Mar 2008 20:39:51 +0200 Subject: [PATCH] Don't announce waypoints unless _announce_waypoints==TRUE --- src/route.c | 3 +++ 1 file changed, 3 insertions(+) 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)) -- 2.39.5