Ticket #901: tunnel_extrapolation.diff

File tunnel_extrapolation.diff, 1.1 KB (added by korrosa, 10 years ago)
  • navit/track.c

     
    648648                return;
    649649        if (!vehicle_get_attr(tr->vehicle, attr_position_valid, &valid, NULL))
    650650                valid.u.num=attr_position_valid_valid;
     651#if 0
    651652        if (valid.u.num == attr_position_valid_invalid) {
    652653                tr->valid=valid.u.num;
    653654                return;
    654655        }
     656#endif
    655657        if (!vehicle_get_attr(tr->vehicle, attr_position_speed, &speed_attr, NULL) ||
    656658            !vehicle_get_attr(tr->vehicle, attr_position_direction, &direction_attr, NULL) ||
    657659            !vehicle_get_attr(tr->vehicle, attr_position_coord_geo, &coord_geo, NULL) ||
  • navit/maptool/osm.c

     
    10551055                flags[access_value(v)] |= AF_DANGEROUS_GOODS;
    10561056                level=5;
    10571057        }
     1058        if (! strcmp(k,"tunnel") && ! strcmp(v,"1")) {
     1059                  flags[0] |= AF_UNDERGROUND;
     1060        }
    10581061        if (! strcmp(k,"note"))
    10591062                level=5;
    10601063        if (! strcmp(k,"name")) {