From 692c147faef712cd03000d6b84ef236f81ca0cd4 Mon Sep 17 00:00:00 2001 From: darkvater Date: Sun, 5 Sep 2004 17:11:00 +0000 Subject: [PATCH] (svn r161) -Fix: added missing file to project and solved wrong type bug --- table/directions.h | 8 ++++++++ tree_cmd.c | 2 +- ttd.dsp | 4 ++++ ttd.vcproj | 7 +++++-- unmovable_cmd.c | 2 +- 5 files changed, 19 insertions(+), 4 deletions(-) create mode 100644 table/directions.h 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; }