mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-15 19:13:07 +01:00
Adjust track build window for Giga Coaster to reflect doubled boost speed
This commit is contained in:
@@ -2164,6 +2164,7 @@ static void window_ride_construction_invalidate(rct_window *w)
|
||||
{
|
||||
rct_ride *ride;
|
||||
rct_string_id stringId;
|
||||
bool boosterTrackSelected = false;
|
||||
|
||||
ride = get_ride(_currentRideIndex);
|
||||
|
||||
@@ -2172,13 +2173,18 @@ static void window_ride_construction_invalidate(rct_window *w)
|
||||
stringId = RideConfigurationStringIds[_currentTrackCurve & 0xFF];
|
||||
if (stringId == STR_RAPIDS && ride->type == RIDE_TYPE_CAR_RIDE)
|
||||
stringId = STR_LOG_BUMPS;
|
||||
if (stringId == STR_SPINNING_CONTROL_TOGGLE_TRACK && ride->type != RIDE_TYPE_WILD_MOUSE)
|
||||
if (stringId == STR_SPINNING_CONTROL_TOGGLE_TRACK && ride->type != RIDE_TYPE_WILD_MOUSE) {
|
||||
stringId = STR_BOOSTER;
|
||||
boosterTrackSelected = true;
|
||||
}
|
||||
}
|
||||
set_format_arg(0, uint16, stringId);
|
||||
|
||||
if (_currentlyShowingBrakeSpeed == 1) {
|
||||
uint16 brakeSpeed2 = ((_currentBrakeSpeed2 * 9) >> 2) & 0xFFFF;
|
||||
if (ride->type == RIDE_TYPE_GIGA_COASTER && boosterTrackSelected) {
|
||||
brakeSpeed2 *= 2;
|
||||
}
|
||||
set_format_arg(2, uint16, brakeSpeed2);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user