mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix #3302. Max ride mode tweak has been broken since a refactor.
This commit is contained in:
parent
a35b774004
commit
51ba0b2e1d
|
@ -2819,7 +2819,7 @@ static void window_ride_mode_tweak_increase(rct_window *w)
|
||||||
|
|
||||||
uint8 increment = ride->mode == RIDE_MODE_BUMPERCAR ? 10 : 1;
|
uint8 increment = ride->mode == RIDE_MODE_BUMPERCAR ? 10 : 1;
|
||||||
uint8 newValue = ride->operation_option + increment;
|
uint8 newValue = ride->operation_option + increment;
|
||||||
if (newValue < maxValue) {
|
if (newValue <= maxValue) {
|
||||||
window_ride_mode_tweak_set(w, newValue);
|
window_ride_mode_tweak_set(w, newValue);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue