(svn r3851) Rail depots only have an entrance at one side, therefore use UpdateSignalsOnSegment() instead of SetSignalsOnBothDir()

This commit is contained in:
tron
2006-03-13 20:12:35 +00:00
parent b812bbeda3
commit 5d939d9c10
2 changed files with 4 additions and 7 deletions

View File

@@ -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);