forked from mirror/OpenTTD
(svn r3851) Rail depots only have an entrance at one side, therefore use UpdateSignalsOnSegment() instead of SetSignalsOnBothDir()
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user