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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user