summaryrefslogtreecommitdiff
path: root/src/npf.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-10-14 18:38:51 +0000
committerrubidium <rubidium@openttd.org>2008-10-14 18:38:51 +0000
commitb5e467978b70884033d8e25a4a9738cc17699e4e (patch)
treea41b987e5fdc223ac9abf159f9ee753f07f2234d /src/npf.h
parent6e397dd3f0b4999c65f0ad5d35fa9007bc6bc9d8 (diff)
downloadopenttd-b5e467978b70884033d8e25a4a9738cc17699e4e.tar.xz
(svn r14464) -Codechange: replace (uint)-1 with UINT_MAX (PhilSophus)
Diffstat (limited to 'src/npf.h')
-rw-r--r--src/npf.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/npf.h b/src/npf.h
index 7bfe226a4..5ea635f84 100644
--- a/src/npf.h
+++ b/src/npf.h
@@ -78,7 +78,7 @@ enum NPFNodeFlag {
/* Meant to be stored in AyStar.userpath */
struct NPFFoundTargetData {
uint best_bird_dist; ///< The best heuristic found. Is 0 if the target was found
- uint best_path_dist; ///< The shortest path. Is (uint)-1 if no path is found
+ uint best_path_dist; ///< The shortest path. Is UINT_MAX if no path is found
Trackdir best_trackdir; ///< The trackdir that leads to the shortest path/closest birds dist
AyStarNode node; ///< The node within the target the search led us to
bool res_okay; ///< True if a path reservation could be made