ATTR(tell_street_name)
ATTR(bluetooth)
ATTR(signal_on_map_click)
+ATTR(route_active)
ATTR2(0x0002ffff,type_int_end)
ATTR2(0x00030000,type_string_begin)
ATTR(type)
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)
route_graph_build_next_map(struct route_graph *rg)
{
do {
- rg->m=mapset_next(rg->h, 1);
+ rg->m=mapset_next(rg->h, 2);
if (! rg->m)
return 0;
map_rect_destroy(rg->mr);
mindist = INT_MAX;
h=mapset_open(ms);
- while ((m=mapset_next(h,1))) {
+ while ((m=mapset_next(h,2))) {
c.x = pc->x;
c.y = pc->y;
if (map_projection(m) != pc->pro) {
dbg(1,"enter\n");
h=mapset_open(tr->ms);
- while ((m=mapset_next(h,1))) {
+ while ((m=mapset_next(h,2))) {
cc.x = pc->x;
cc.y = pc->y;
if (map_projection(m) != pro) {