pathfind.c
changeset 3157 40de8616c04c
parent 3154 a8fffb204d0e
child 3184 7405329343ce
--- a/pathfind.c	Tue Mar 07 07:51:05 2006 +0000
+++ b/pathfind.c	Wed Mar 08 06:55:33 2006 +0000
@@ -210,7 +210,7 @@
 /* Returns the end tile and the length of a tunnel. The length does not
  * include the starting tile (entry), it does include the end tile (exit).
  */
-FindLengthOfTunnelResult FindLengthOfTunnel(TileIndex tile, uint direction)
+FindLengthOfTunnelResult FindLengthOfTunnel(TileIndex tile, DiagDirection direction)
 {
 	FindLengthOfTunnelResult flotr;
 	int x,y;
@@ -246,7 +246,7 @@
 
 static const uint16 _tpfmode1_and[4] = { 0x1009, 0x16, 0x520, 0x2A00 };
 
-static uint SkipToEndOfTunnel(TrackPathFinder *tpf, TileIndex tile, int direction)
+static uint SkipToEndOfTunnel(TrackPathFinder* tpf, TileIndex tile, DiagDirection direction)
 {
 	FindLengthOfTunnelResult flotr;
 	TPFSetTileBit(tpf, tile, 14);