git-svn-id: https://svn.osgeo.org/grass/grass/trunk@41653 15284696-431f-4ddb-bdfa-cd5b030d7da7
@@ -642,7 +642,7 @@ struct point *drain_cost(int dir_fd, struct point *list, int nrow, int ncol)
* read next. This is repeated via a while loop until a null direction is found.
*/
- int neighbour, next_row, next_col, go = 1;
+ int neighbour, row, col, next_row, next_col, go = 1;
DCELL direction;
DCELL *dir_buf;
@@ -162,8 +162,8 @@ for the input, rather than the elevation surface. The output is then created
according to one of the <b>-can</b> flags.
<div class="code"><pre>
The directions are recorded as GRASS standard directions:
- 112.5 90 67.5 i.e. a cell with the value 135
-157.5 135 0 45 22.5 means the cell <b>before</b> it is
+ 112.5 67.5 i.e. a cell with the value 135
+157.5 135 90 45 22.5 means the cell <b>before</b> it is
180 x 0 to the south-east.
202.5 225 270 315 337.5
247.5 292.5