diff options
author | Wildemann Stefan <stefan.wildemann@corpuls.com> | 2019-09-24 14:57:32 +0200 |
---|---|---|
committer | Wildemann Stefan <stefan.wildemann@corpuls.com> | 2019-09-24 14:57:32 +0200 |
commit | e94b7a162f28ccaa6859f2cb33c98453b15238b8 (patch) | |
tree | 9c2af6266ccdd57a550630f57d40991e749b0045 | |
parent | e666d1a2e1015b8575cf327f59e6ae36c4ce0ef8 (diff) | |
download | navit-e94b7a162f28ccaa6859f2cb33c98453b15238b8.tar.gz |
fix:graphics:do not draw oneway items on roundabouts
even if they are AF_ONEWAY...
-rw-r--r-- | navit/graphics.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/navit/graphics.c b/navit/graphics.c index 09e8a097e..3fc48a83b 100644 --- a/navit/graphics.c +++ b/navit/graphics.c @@ -1570,7 +1570,6 @@ static void display_draw_arrows(struct graphics *gra, struct display_context *dc int *width, int filled) { long i,dx,dy,l; struct point p; - struct element *e=dc->e; for (i = 0 ; i < count-1 ; i++) { dx=pnt[i+1].x-pnt[i].x; dy=pnt[i+1].y-pnt[i].y; @@ -2720,8 +2719,8 @@ static void displayitem_draw(struct displayitem *di, struct layout *l, struct di di->z_order=++(gra->current_z_order); /* Skip elements that are to be drawn on oneway streets only - * if street is not oneway */ - if((e->oneway) && (!(di->flags & AF_ONEWAY))) { + * if street is not oneway or roundabout */ + if((e->oneway) && ((!(di->flags & AF_ONEWAY)) || (di->flags & AF_ROUNDABOUT))) { di=di->next; continue; } |