summaryrefslogtreecommitdiff
path: root/train_cmd.c
diff options
context:
space:
mode:
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);