diff options
author | mvglasow <michael -at- vonglasow.com> | 2018-01-13 22:29:49 +0100 |
---|---|---|
committer | mvglasow <michael -at- vonglasow.com> | 2018-01-13 22:29:49 +0100 |
commit | d491d2f30a527b5ee7a7770c64eadcaed42827b9 (patch) | |
tree | d655d1ff356ac63716521745c31255b66de072d3 /navit | |
parent | 55e6dbef0a9cc6f18e4f10f5325e3fa66c0517bb (diff) | |
download | navit-d491d2f30a527b5ee7a7770c64eadcaed42827b9.tar.gz |
Fix:traffic:Add only routable items to route graph
Signed-off-by: mvglasow <michael -at- vonglasow.com>
Diffstat (limited to 'navit')
-rw-r--r-- | navit/traffic.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/navit/traffic.c b/navit/traffic.c index bba3c2e30..51a5b9db1 100644 --- a/navit/traffic.c +++ b/navit/traffic.c @@ -1003,8 +1003,7 @@ static void traffic_location_populate_route_graph(struct traffic_location * this /* TODO we might need turn restrictions in mode 1 as well */ if ((mode == 1) && (item->type != type_ramp)) continue; - /* TODO are there any non-routable line types which we can exclude? */ - if ((item->type < type_line) || (item->type >= type_area)) + if ((item->type < route_item_first) || (item->type > route_item_last)) continue; if (item_get_default_flags(item->type)) { |