summaryrefslogtreecommitdiff
path: root/src/pathfinder
diff options
context:
space:
mode:
authorJ0an Josep <juanjo.ng.83@gmail.com>2018-07-25 18:53:58 +0200
committerNiels Martin Hansen <nielsm@indvikleren.dk>2019-01-04 23:55:07 +0100
commit16a91130a791de4b219c387c7aeccd15f14ea26f (patch)
tree931b4765281e254d8516c3cb73ec958f0a445b23 /src/pathfinder
parent49ab02c084c0f69efdf4bbe286ce3662d1eafe86 (diff)
downloadopenttd-16a91130a791de4b219c387c7aeccd15f14ea26f.tar.xz
Codechange: Use INVALID_TRACKDIR instead of 0xFF.
Diffstat (limited to 'src/pathfinder')
-rw-r--r--src/pathfinder/npf/npf.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pathfinder/npf/npf.cpp b/src/pathfinder/npf/npf.cpp
index 3218d8314..bc4d8b309 100644
--- a/src/pathfinder/npf/npf.cpp
+++ b/src/pathfinder/npf/npf.cpp
@@ -1169,7 +1169,7 @@ Track NPFShipChooseTrack(const Ship *v, TileIndex tile, DiagDirection enterdir,
* we did not find our target, but ftd.best_trackdir contains the direction leading
* to the tile closest to our target. */
path_found = (ftd.best_bird_dist == 0);
- if (ftd.best_trackdir == 0xff) return INVALID_TRACK;
+ if (ftd.best_trackdir == INVALID_TRACKDIR) return INVALID_TRACK;
return TrackdirToTrack(ftd.best_trackdir);
}