diff options
author | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2009-12-02 16:38:35 +0000 |
---|---|---|
committer | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2009-12-02 16:38:35 +0000 |
commit | 69c0700fd59e30de1437477f5645c516b1691fc8 (patch) | |
tree | e014c1bdb2f74a2c417a4e6cc839c86b1debad22 /navit/mapset.c | |
parent | 8f0c3fc719f4df55adb2e9ad1bf42224f8b79218 (diff) | |
download | navit-svn-69c0700fd59e30de1437477f5645c516b1691fc8.tar.gz |
Add:Core:Possibility to activate routing per map independent of rendering
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@2819 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/mapset.c')
-rw-r--r-- | navit/mapset.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/navit/mapset.c b/navit/mapset.c index 81e2103a..a6846c50 100644 --- a/navit/mapset.c +++ b/navit/mapset.c @@ -192,6 +192,13 @@ struct map * mapset_next(struct mapset_handle *msh, int active) msh->l=g_list_next(msh->l); if (!active) return ret; + dbg(0,"active=%d\n",active); + if (active == 2 && map_get_attr(ret, attr_route_active, &active_attr, NULL)) { + if (active_attr.u.num) + return ret; + else + continue; + } if (!map_get_attr(ret, attr_active, &active_attr, NULL)) return ret; if (active_attr.u.num) |