mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-11 16:54:42 +00:00
Codechange: Use INVALID_TRACKDIR instead of 0xFF.
This commit is contained in:
parent
49ab02c084
commit
16a91130a7
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user