mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix #6341: “Unlock vehicle limits” doesn’t work for setting fewer cpt
This commit is contained in:
parent
5de62b774a
commit
174d638d1d
|
@ -25,6 +25,7 @@
|
|||
- Change: [#18381] Convert custom invisible paths to the built-in ones.
|
||||
- Change: [OpenSFX#11, OpenMusic#19] First implementation of official replacement asset packs for sound effects & music.
|
||||
- Fix: [#1519] “See-through rides” doesn't affect all rides (original bug).
|
||||
- Fix: [#6341] “Unlock vehicle limits” does not allow setting fewer vehicles than the vehicle type requires.
|
||||
- Fix: [#14312] Research ride type message incorrect.
|
||||
- Fix: [#14425] Ride ratings do not skip unallocated ride ids.
|
||||
- Fix: [#15969] Guests heading for ride use vanilla behaviour
|
||||
|
|
|
@ -2676,8 +2676,7 @@ static void WindowRideVehicleMousedown(rct_window* w, WidgetIndex widgetIndex, r
|
|||
ride->SetNumCarsPerVehicle(ride->num_cars_per_train + 1);
|
||||
break;
|
||||
case WIDX_VEHICLE_CARS_PER_TRAIN_DECREASE:
|
||||
rct_ride_entry* rideEntry = ride->GetRideEntry();
|
||||
if (ride->num_cars_per_train > rideEntry->zero_cars + 1)
|
||||
if (ride->num_cars_per_train > 1)
|
||||
ride->SetNumCarsPerVehicle(ride->num_cars_per_train - 1);
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue