From 80c332e283f7eaf02f8f2f9da792a30c8bf18f2b Mon Sep 17 00:00:00 2001 From: Olivier Lanneluc Date: Fri, 3 May 2013 16:22:22 +0200 Subject: digital/io-hub/src/common-cc/path: rename variable i into next_point for clearness --- digital/io-hub/src/common-cc/path.cc | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'digital/io-hub') diff --git a/digital/io-hub/src/common-cc/path.cc b/digital/io-hub/src/common-cc/path.cc index d1d1f132..86c045d1 100644 --- a/digital/io-hub/src/common-cc/path.cc +++ b/digital/io-hub/src/common-cc/path.cc @@ -188,23 +188,23 @@ int Path::find_neighbors(int cur_point, struct astar_neighbor_t *neighbors) ucoo::assert(cur_point> PATH_WEIGHT_PRECISION; - host_debug("- Node %u (%u;%u) w=%u (%u) ", i, navpoints[i].x, navpoints[i].y, weight, navweights[i]); + host_debug("- Node %u (%u;%u) w=%u (%u) ", next_point, navpoints[next_point].x, navpoints[next_point].y, weight, navweights[next_point]); /* Check every obstacle */ for(int j=0; j validated w=%u\n", weight); - neighbors[neighbors_nb].node = i; + neighbors[neighbors_nb].node = next_point; neighbors[neighbors_nb].weight = weight; neighbors_nb++; } -- cgit v1.2.3