]> git.pond.sub.org Git - empserver/commit
Use path_find() directly where only cost is needed
authorMarkus Armbruster <armbru@pond.sub.org>
Mon, 21 Mar 2011 19:26:02 +0000 (20:26 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Tue, 12 Apr 2011 19:51:31 +0000 (21:51 +0200)
commitaef27e3521f99c08351307e37d2ec72454b666e5
tree706fbfa294a5be2ef02fd0da8559d303213f3916
parent04363a92db7e80942c03f9dee6edca88cc3536eb
Use path_find() directly where only cost is needed

dist(), att_reacting_units() and s_commod() are only interested in
cost, not the actual path.  BestLandPath() and BestDistPath() compute
both cost and path.  Use path_find() directly instead.

Destinations are no longer treated as unreachable when the best path
is longer than 1023 characters.
src/lib/commands/dist.c
src/lib/subs/attsub.c
src/lib/subs/supply.c