summaryrefslogtreecommitdiff
path: root/train_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-03-13 20:12:35 +0000
committertron <tron@openttd.org>2006-03-13 20:12:35 +0000
commit5d939d9c107e007841450ea6ecbc2d963e9e8662 (patch)
tree373b43f0917517d23efff9f6e23d88cc761af1aa /train_cmd.c
parentb812bbeda3dc56720e57a66900dfe626455d3355 (diff)
downloadopenttd-5d939d9c107e007841450ea6ecbc2d963e9e8662.tar.xz
(svn r3851) Rail depots only have an entrance at one side, therefore use UpdateSignalsOnSegment() instead of SetSignalsOnBothDir()
Diffstat (limited to 'train_cmd.c')
-rw-r--r--train_cmd.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/train_cmd.c b/train_cmd.c
index b14a9e0ff..8b0176a0b 100644
--- a/train_cmd.c
+++ b/train_cmd.c
@@ -3282,12 +3282,9 @@ void Train_Tick(Vehicle *v)
}
-static const byte _depot_track_ind[4] = {0,1,0,1};
-
-
void TrainEnterDepot(Vehicle *v, TileIndex tile)
{
- SetSignalsOnBothDir(tile, _depot_track_ind[GetRailDepotDirection(tile)]);
+ UpdateSignalsOnSegment(tile, GetRailDepotDirection(tile));
if (!IsFrontEngine(v)) v = GetFirstVehicleInChain(v);