Ensure secondary track type is valid when switching to dual mode by removing piece

pull/480/head
Jonathan G Rennison 1 year ago
parent 4761750eae
commit 7701d4e813

@ -1051,6 +1051,10 @@ CommandCost CmdRemoveSingleRail(TileIndex tile, DoCommandFlag flags, uint32 p1,
} else {
SetTrackBits(tile, present);
SetTrackReservation(tile, GetRailReservationTrackBits(tile) & present);
if (present == TRACK_BIT_HORZ || present == TRACK_BIT_VERT) {
SetSecondaryRailType(tile, GetRailType(tile));
}
}
}
break;

Loading…
Cancel
Save