Ensure secondary track type is valid when switching to dual mode by removing piece
This commit is contained in:
@@ -1051,6 +1051,10 @@ CommandCost CmdRemoveSingleRail(TileIndex tile, DoCommandFlag flags, uint32 p1,
|
|||||||
} else {
|
} else {
|
||||||
SetTrackBits(tile, present);
|
SetTrackBits(tile, present);
|
||||||
SetTrackReservation(tile, GetRailReservationTrackBits(tile) & present);
|
SetTrackReservation(tile, GetRailReservationTrackBits(tile) & present);
|
||||||
|
|
||||||
|
if (present == TRACK_BIT_HORZ || present == TRACK_BIT_VERT) {
|
||||||
|
SetSecondaryRailType(tile, GetRailType(tile));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user