diff options
author | J0an Josep <juanjo.ng.83@gmail.com> | 2018-07-25 18:53:58 +0200 |
---|---|---|
committer | Niels Martin Hansen <nielsm@indvikleren.dk> | 2019-01-04 23:55:07 +0100 |
commit | 16a91130a791de4b219c387c7aeccd15f14ea26f (patch) | |
tree | 931b4765281e254d8516c3cb73ec958f0a445b23 | |
parent | 49ab02c084c0f69efdf4bbe286ce3662d1eafe86 (diff) | |
download | openttd-16a91130a791de4b219c387c7aeccd15f14ea26f.tar.xz |
Codechange: Use INVALID_TRACKDIR instead of 0xFF.
-rw-r--r-- | src/pathfinder/npf/npf.cpp | 2 |
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); } |