summaryrefslogtreecommitdiff
path: root/rail_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-03-12 16:13:16 +0000
committertron <tron@openttd.org>2006-03-12 16:13:16 +0000
commiteeb5bf41a152087031b0764d5d3b2783922b70ae (patch)
tree3d2526e7f2638131186fe93a08829d1bf29f22b5 /rail_cmd.c
parent0100871412ac1b48aa64a87f2d88d8276212963e (diff)
downloadopenttd-eeb5bf41a152087031b0764d5d3b2783922b70ae.tar.xz
(svn r3831) Add and use GetRailDepotDirection()
Diffstat (limited to 'rail_cmd.c')
-rw-r--r--rail_cmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rail_cmd.c b/rail_cmd.c
index 8dc36a59d..034a8ad10 100644
--- a/rail_cmd.c
+++ b/rail_cmd.c
@@ -1027,7 +1027,7 @@ static int32 RemoveTrainDepot(TileIndex tile, uint32 flags)
return CMD_ERROR;
if (flags & DC_EXEC) {
- Track track = TrackdirToTrack(DiagdirToDiagTrackdir(GetDepotDirection(tile, TRANSPORT_RAIL)));
+ Track track = TrackdirToTrack(DiagdirToDiagTrackdir(GetRailDepotDirection(tile)));
DoDeleteDepot(tile);
SetSignalsOnBothDir(tile, track);
@@ -2085,7 +2085,7 @@ static uint32 VehicleEnter_Track(Vehicle *v, TileIndex tile, int x, int y)
if (v->type != VEH_Train || !IsTileDepotType(tile, TRANSPORT_RAIL)) return 0;
/* depot direction */
- dir = GetDepotDirection(tile, TRANSPORT_RAIL);
+ dir = GetRailDepotDirection(tile);
/* calculate the point where the following wagon should be activated */
/* this depends on the length of the current vehicle */