r.cost INFINITY patch

Hello,

here is a patch to r.cost (main.c file).
This patch is against Grass5.0beta7.

to apply the patch, just go into grass/src/raster/r.cost/cmd
the do a:
  parch -po -u < rcost.diff

and do a :
  gmake5.

(No need to rebuild the links)

I slightly changed the algorithm, so there is no more references to any infinite
value.

I tested both the new code and the patch application, so anything should go
seamlessly.

Sorry for the annoyance,

Pierre.

(attachments)

rcost.diff (1.83 KB)