diff options
author | tron <tron@openttd.org> | 2006-03-13 20:12:35 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-03-13 20:12:35 +0000 |
commit | 8505f4ed41dc7045cc1a6f36ed3d2d4f035dbb63 (patch) | |
tree | 373b43f0917517d23efff9f6e23d88cc761af1aa /train_cmd.c | |
parent | 23ae85048446ab85f89b66645a8df664cbd46c2d (diff) | |
download | openttd-8505f4ed41dc7045cc1a6f36ed3d2d4f035dbb63.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.c | 5 |
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); |