diff options
author | tron <tron@openttd.org> | 2006-03-06 20:28:28 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-03-06 20:28:28 +0000 |
commit | 2d3c28f2b3d24c2b01e54a51e2dcf5ad7f4851c8 (patch) | |
tree | 410be31dd2267cd8af3257b3d145965515575d34 /pathfind.h | |
parent | fc1e9c5a92ccfeaea09b1fcd1bb58f1de4cb2644 (diff) | |
download | openttd-2d3c28f2b3d24c2b01e54a51e2dcf5ad7f4851c8.tar.xz |
(svn r3776) Replace many ints and magic numbers by Direction, DiagDirection and friends
Diffstat (limited to 'pathfind.h')
-rw-r--r-- | pathfind.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pathfind.h b/pathfind.h index e2ee50d18..ec358b5db 100644 --- a/pathfind.h +++ b/pathfind.h @@ -3,6 +3,8 @@ #ifndef PATHFIND_H #define PATHFIND_H +#include "direction.h" + //#define PF_BENCH // perform simple benchmarks on the train pathfinder (not //supported on all archs) @@ -58,7 +60,7 @@ struct TrackPathFinder { TrackPathFinderLink links[0x400]; /* hopefully, this is enough. */ }; -void FollowTrack(TileIndex tile, uint16 flags, byte direction, TPFEnumProc *enum_proc, TPFAfterProc *after_proc, void *data); +void FollowTrack(TileIndex tile, uint16 flags, DiagDirection direction, TPFEnumProc* enum_proc, TPFAfterProc* after_proc, void* data); typedef struct { TileIndex tile; @@ -66,6 +68,6 @@ typedef struct { } FindLengthOfTunnelResult; FindLengthOfTunnelResult FindLengthOfTunnel(TileIndex tile, uint direction); -void NewTrainPathfind(TileIndex tile, TileIndex dest, byte direction, NTPEnumProc *enum_proc, void *data); +void NewTrainPathfind(TileIndex tile, TileIndex dest, DiagDirection direction, NTPEnumProc* enum_proc, void* data); #endif /* PATHFIND_H */ |