Skip to content

Fix #6341: “Unlock vehicle limits” does not allow setting fewer vehicles than the vehicle type requires#18815

Merged
Gymnasiast merged 2 commits into
OpenRCT2:developfrom
Gymnasiast:fix/6341
Dec 12, 2022
Merged

Fix #6341: “Unlock vehicle limits” does not allow setting fewer vehicles than the vehicle type requires#18815
Gymnasiast merged 2 commits into
OpenRCT2:developfrom
Gymnasiast:fix/6341

Conversation

@Gymnasiast

Copy link
Copy Markdown
Member

No description provided.

@Gymnasiast Gymnasiast changed the title - Fix #6341: “Unlock vehicle limits” does not allow setting fewer vehicles than the vehicle type requires Fix #6341: “Unlock vehicle limits” does not allow setting fewer vehicles than the vehicle type requires Dec 11, 2022
break;
case WIDX_VEHICLE_CARS_PER_TRAIN_DECREASE:
rct_ride_entry* rideEntry = ride->GetRideEntry();
if (ride->num_cars_per_train > rideEntry->zero_cars + 1)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note to the reviewer: This check is now simply handled in the game action, just like it is for the max cars per train.

@Gymnasiast Gymnasiast added this to the v0.4.3 milestone Dec 12, 2022
@Gymnasiast Gymnasiast merged commit 6b8f7af into OpenRCT2:develop Dec 12, 2022
@Gymnasiast Gymnasiast deleted the fix/6341 branch December 12, 2022 21:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unlock Vehicle Limits cheat does not allow setting of "zero" vehicles per train

2 participants