diff options
author | Stefan Wildemann <gta04@metalstrolche.de> | 2019-08-01 01:03:16 +0200 |
---|---|---|
committer | Stefan Wildemann <gta04@metalstrolche.de> | 2019-08-01 01:03:16 +0200 |
commit | 10e8e075f87194a20c234579ab6049f211b798f2 (patch) | |
tree | 6694edd626e6f0a1ef790f680a40c2a81f201b02 | |
parent | fa45f14cde72efe75a2c43cccbcb773e8fd3f2cc (diff) | |
download | navit-10e8e075f87194a20c234579ab6049f211b798f2.tar.gz |
Fix turn restriction processing
-rw-r--r-- | navit/maptool/osm.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/navit/maptool/osm.c b/navit/maptool/osm.c index fa5bde9b1..588879d66 100644 --- a/navit/maptool/osm.c +++ b/navit/maptool/osm.c @@ -1621,14 +1621,18 @@ void osm_end_relation(struct maptool_osm *osm) { tmp_item_bin->type = type; } else { type=type_none; - tmp_item_bin->type=type; + /* do not touch tmp_item_bin->type in this case, as it may be already set! For example + * indicating the turn restrictions */ + //tmp_item_bin->type=type; } } else { if(attr_longest_match(attr_mapping_rel2poly_place, attr_mapping_rel2poly_place_count, &type, 1)) { tmp_item_bin->type=type; } else { type=type_none; - tmp_item_bin->type=type; + /* do not touch tmp_item_bin->type in this case, as it may be already set! For example + * indicating the turn restrictions */ + //tmp_item_bin->type=type; } } |