1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 19:13:07 +01:00

Do not overwrite ride type when extending station

This commit is contained in:
Gymnasiast
2021-09-21 10:50:38 +02:00
parent 11607f525d
commit 8fb8b2a4c1

View File

@@ -244,7 +244,6 @@ bool track_add_station_element(CoordsXYZD loc, ride_id_t rideIndex, int32_t flag
targetTrackType = TrackElemType::MiddleStation;
}
stationElement->AsTrack()->SetTrackType(targetTrackType);
stationElement->AsTrack()->SetRideType(ride->type);
map_invalidate_element(loc, stationElement);
@@ -390,7 +389,6 @@ bool track_remove_station_element(const CoordsXYZD& loc, ride_id_t rideIndex, in
}
}
stationElement->AsTrack()->SetTrackType(targetTrackType);
stationElement->AsTrack()->SetRideType(ride->type);
map_invalidate_element(currentLoc, stationElement);
}