From: Kaj-Michael Lang Date: Fri, 21 Mar 2008 12:45:16 +0000 (+0200) Subject: Announce distance to destination only if _announce_destination==TRUE X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a382431523d6372881af66e3be0942903da79c73;p=mapper Announce distance to destination only if _announce_destination==TRUE --- diff --git a/src/map.c b/src/map.c index a39e8f0..a3e279d 100644 --- a/src/map.c +++ b/src/map.c @@ -1249,7 +1249,7 @@ if (_dest.valid) { announce_destination_reached(); dest_reached=TRUE; } else if (dt0) + if (_center_mode>0 && _announce_destination==TRUE) announce_distance_to_destination(cdist, UNITS_TEXT[_units], KM10KNOTS); prev_dt=dt; } else if (dt>prev_dt+KM10KNOTS/4) { @@ -1264,6 +1264,7 @@ if (_dest.valid) { prev_dt=99999.0; gtk_label_set_label(GTK_LABEL(info_banner.distance), ""); } + gtk_compass_set_dest_heading(_gps_compass, _dest.valid, (gfloat)dh); gtk_compass_set_dest_heading(_tab_compass, _dest.valid, (gfloat)dh);