summaryrefslogtreecommitdiff
path: root/src/tile_cmd.h
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-02-18 16:11:31 +0000
committersmatz <smatz@openttd.org>2008-02-18 16:11:31 +0000
commit29125c0e68ffc3d4627212f33bce39ba108cd341 (patch)
tree931c3875fce3f210d8676944d6ea635dac295fc7 /src/tile_cmd.h
parenta0a225ab021f4cbb65679c04898d6f3eb8eb3662 (diff)
downloadopenttd-29125c0e68ffc3d4627212f33bce39ba108cd341.tar.xz
(svn r12177) -Codechange: use 'side' parameter in GetTileTrackStatus so there can be less checks in pathfinders for depots/stations/tunnels/bridges
Diffstat (limited to 'src/tile_cmd.h')
-rw-r--r--src/tile_cmd.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tile_cmd.h b/src/tile_cmd.h
index 50b5dad7a..92c9fe06c 100644
--- a/src/tile_cmd.h
+++ b/src/tile_cmd.h
@@ -13,6 +13,7 @@
#include "strings_type.h"
#include "date_type.h"
#include "player_type.h"
+#include "direction_type.h"
/** The returned bits of VehicleEnterTile. */
enum VehicleEnterTileStatus {
@@ -81,7 +82,7 @@ typedef void GetTileDescProc(TileIndex tile, TileDesc *td);
* @param sub_mode used to differentiate between different kinds within the mode
* @return the above mentions track status information
*/
-typedef uint32 GetTileTrackStatusProc(TileIndex tile, TransportType mode, uint sub_mode);
+typedef uint32 GetTileTrackStatusProc(TileIndex tile, TransportType mode, uint sub_mode, DiagDirection side);
typedef void GetProducedCargoProc(TileIndex tile, CargoID *b);
typedef void ClickTileProc(TileIndex tile);
typedef void AnimateTileProc(TileIndex tile);
@@ -126,7 +127,7 @@ struct TileTypeProcs {
extern const TileTypeProcs * const _tile_type_procs[16];
-uint32 GetTileTrackStatus(TileIndex tile, TransportType mode, uint sub_mode);
+uint32 GetTileTrackStatus(TileIndex tile, TransportType mode, uint sub_mode, DiagDirection side = INVALID_DIAGDIR);
void GetAcceptedCargo(TileIndex tile, AcceptedCargo ac);
void ChangeTileOwner(TileIndex tile, PlayerID old_player, PlayerID new_player);
void AnimateTile(TileIndex tile);