water_cmd.c
changeset 159 139cf78bfb28
parent 149 5f7d4b21df01
child 164 0cbdf3c9bde1
--- a/water_cmd.c	Sun Sep 05 14:20:36 2004 +0000
+++ b/water_cmd.c	Sun Sep 05 16:15:22 2004 +0000
@@ -600,12 +600,12 @@
 static const byte _coast_tracks[16] = {0, 32, 4, 0, 16, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0};
 static const byte _shipdepot_tracks[4] = {1,1,2,2};
 static const byte _shiplift_tracks[12] = {1,2,1,2,1,2,1,2,1,2,1,2};
-static uint32 GetTileTrackStatus_Water(uint tile, int mode)
+static uint32 GetTileTrackStatus_Water(uint tile, TransportType mode)
 {
 	uint m5;
 	uint b;
 
-	if (mode != 4)
+	if (mode != TRANSPORT_WATER)
 		return 0;
 
 	m5 = _map5[tile];