pathfind.h
changeset 3153 e83501906eae
parent 2493 f6b4300cc2b0
child 3323 89aed4056b8f
--- a/pathfind.h	Mon Mar 06 19:23:26 2006 +0000
+++ b/pathfind.h	Mon Mar 06 20:28:28 2006 +0000
@@ -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 @@
 	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 @@
 } 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 */