summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--table/directions.h8
-rw-r--r--tree_cmd.c2
-rw-r--r--ttd.dsp4
-rw-r--r--ttd.vcproj7
-rw-r--r--unmovable_cmd.c2
5 files changed, 19 insertions, 4 deletions
diff --git a/table/directions.h b/table/directions.h
new file mode 100644
index 000000000..c25468cfe
--- /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 dd574b548..9d77a1ff1 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 883647814..7fc94ede5 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 8b647d0fb..59f19d41c 100644
--- a/ttd.vcproj
+++ b/ttd.vcproj
@@ -294,7 +294,7 @@
</File>
<File
RelativePath=".\console.c">
- </File>
+ </File>
<File
RelativePath="economy.c">
<FileConfiguration
@@ -1103,7 +1103,7 @@
</File>
<File
RelativePath="console.h">
- </File>
+ </File>
<File
RelativePath="economy.h">
</File>
@@ -2561,6 +2561,9 @@
RelativePath="table\clear_land.h">
</File>
<File
+ RelativePath=".\table\directions.h">
+ </File>
+ <File
RelativePath="table\engines.h">
</File>
<File
diff --git a/unmovable_cmd.c b/unmovable_cmd.c
index 0cdc67a5e..0ce02e199 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;
}