From 1da9d7c7193295fd4b6c200c0ad1036dd9ba1841 Mon Sep 17 00:00:00 2001 From: martin-s Date: Sun, 12 Apr 2009 08:35:47 +0000 Subject: Fix:map_mg:Changed default flags to new api git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit/navit@2204 ffa7fe5e-494d-0410-b361-a75ebd5db220 --- map/mg/street.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/map/mg/street.c b/map/mg/street.c index 6d7c565a..a347fbdc 100644 --- a/map/mg/street.c +++ b/map/mg/street.c @@ -322,6 +322,7 @@ static unsigned char limit[]={0,0,1,1,1,2,2,4,6,6,12,13,14,20,20,20,20,20,20}; int street_get(struct map_rect_priv *mr, struct street_priv *street, struct item *item) { + int *flags; for (;;) { while (street->more) { struct coord c; @@ -423,8 +424,9 @@ street_get(struct map_rect_priv *mr, struct street_priv *street, struct item *it item->type=type_street_unkn; dbg(0,"unknown type 0x%x\n",street->str->type); } - if (item->type >= route_item_first && item->type <= route_item_last) - street->flags=default_flags[item->type-route_item_first]; + flags=item_get_default_flags(item->type); + if (flags) + street->flags=*flags; else street->flags=0; if (street->str->type & 0x40) { -- cgit v1.2.1