Add:Core:Slightly better debug for map matching
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Thu, 7 Apr 2011 07:37:53 +0000 (07:37 +0000)
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Thu, 7 Apr 2011 07:37:53 +0000 (07:37 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@4418 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navit/track.c

index 58805cc..4d0fe0d 100644 (file)
@@ -912,7 +912,7 @@ tracking_map_item_attr_get(void *priv_data, enum attr_type attr_type, struct att
                switch(this_->debug_idx) {
                case 0:
                         this_->debug_idx++;
-                       this_->str=attr->u.str=g_strdup_printf("overall: %d",tracking_value(tr, this_->curr, this_->coord, &lpnt, INT_MAX/2, -1));
+                       this_->str=attr->u.str=g_strdup_printf("overall: %d (limit %d)",tracking_value(tr, this_->curr, this_->coord, &lpnt, INT_MAX/2, -1), tr->offroad_limit_pref);
                         return 1;
                case 1:
                        this_->debug_idx++;