diff --git a/table/directions.h b/table/directions.h
new file mode 100644
index 0000000000..c25468cfe6
--- /dev/null
+++ b/table/directions.h
@@ -0,0 +1,8 @@
+static const byte _dir_to_straight_trackdir[4] = {
+ 0, 1, 8, 9,
+};
+
+static const byte _reverse_dir[4] = {
+// 3, 0, 1, 2
+ 2, 3, 0, 1
+};
diff --git a/tree_cmd.c b/tree_cmd.c
index dd574b5485..9d77a1ff13 100644
--- a/tree_cmd.c
+++ b/tree_cmd.c
@@ -618,7 +618,7 @@ static void ClickTile_Trees(uint tile)
/* not used */
}
-static uint32 GetTileTrackStatus_Trees(uint tile, int mode)
+static uint32 GetTileTrackStatus_Trees(uint tile, TransportType mode)
{
return 0;
}
diff --git a/ttd.dsp b/ttd.dsp
index 883647814f..7fc94ede55 100644
--- a/ttd.dsp
+++ b/ttd.dsp
@@ -898,6 +898,10 @@ SOURCE=.\table\clear_land.h
# End Source File
# Begin Source File
+SOURCE=.\table\directions.h
+# End Source File
+# Begin Source File
+
SOURCE=.\table\engines.h
# End Source File
# Begin Source File
diff --git a/ttd.vcproj b/ttd.vcproj
index 8b647d0fba..59f19d41c8 100644
--- a/ttd.vcproj
+++ b/ttd.vcproj
@@ -294,7 +294,7 @@
-
+
-
+
@@ -2560,6 +2560,9 @@
+
+
diff --git a/unmovable_cmd.c b/unmovable_cmd.c
index 0cdc67a5ed..0ce02e199a 100644
--- a/unmovable_cmd.c
+++ b/unmovable_cmd.c
@@ -223,7 +223,7 @@ static void TileLoop_Unmovable(uint tile)
}
-static uint32 GetTileTrackStatus_Unmovable(uint tile, int mode)
+static uint32 GetTileTrackStatus_Unmovable(uint tile, TransportType mode)
{
return 0;
}