]> err.no Git - mapper/commitdiff
Check place if forced or distance is over limit
authorKaj-Michael Lang <milang@tal.org>
Wed, 9 Apr 2008 21:48:01 +0000 (00:48 +0300)
committerKaj-Michael Lang <milang@tal.org>
Wed, 9 Apr 2008 21:48:01 +0000 (00:48 +0300)
src/osm-db.c

index 8f475206521c78deb67bb6be242176e5f08ad295..7298e71138ccb4cbc5e98e987a79084b2fb12675 100644 (file)
@@ -1108,9 +1108,9 @@ if (map_loc->changed==TRUE) {
 }
 
 g_debug("NotFoundCounter: %d", map_loc->nfcnt);
-g_debug("D: %ld %ld", d,(gulong)way_dist_range);
+g_debug("D: %ld %ld", d, (gulong)way_dist_range);
 
-if (check_place==TRUE && d>way_dist_range*4) {
+if (check_place==TRUE || d>way_dist_range*4) {
        gboolean fs;
 
        fs=osm_find_nearest_place(NODE_PLACE_SUBURB, lat, lon, &map_loc->secondary);