mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-27 00:34:46 +01:00
Close #13407 Allow building covered lift hill when cheat enabled
This commit is contained in:
committed by
GitHub
parent
6f2e20f8db
commit
613c309f93
@@ -1,6 +1,7 @@
|
||||
0.3.4.1+ (in development)
|
||||
------------------------------------------------------------------------
|
||||
- Feature: [#3868] Initial support for using TTF in OpenGL mode (still contains bugs).
|
||||
- Feature: [#13407] Allow building chain lifts on enclosed dinghy slide pieces when cheats are on.
|
||||
- Feature: [#15084] [Plugin] Add "vehicle.crash" hook.
|
||||
- Feature: [#15143] Added a shortcut key for Giant Screenshot.
|
||||
- Feature: [#15164] Highlight elements selected by the Tile Inspector, tracks are currently not supported.
|
||||
|
||||
@@ -1518,10 +1518,8 @@ static void window_ride_construction_mousedown(rct_window* w, rct_widgetindex wi
|
||||
case WIDX_CHAIN_LIFT:
|
||||
ride_construction_invalidate_current_track();
|
||||
_currentTrackLiftHill ^= CONSTRUCTION_LIFT_HILL_SELECTED;
|
||||
if (_currentTrackLiftHill & CONSTRUCTION_LIFT_HILL_SELECTED)
|
||||
{
|
||||
if ((_currentTrackLiftHill & CONSTRUCTION_LIFT_HILL_SELECTED) && !gCheatsEnableChainLiftOnAllTrack)
|
||||
_currentTrackAlternative &= ~RIDE_TYPE_ALTERNATIVE_TRACK_PIECES;
|
||||
}
|
||||
_currentTrackPrice = MONEY32_UNDEFINED;
|
||||
window_ride_construction_update_active_elements();
|
||||
break;
|
||||
@@ -1599,7 +1597,8 @@ static void window_ride_construction_mousedown(rct_window* w, rct_widgetindex wi
|
||||
case WIDX_O_TRACK:
|
||||
ride_construction_invalidate_current_track();
|
||||
_currentTrackAlternative |= RIDE_TYPE_ALTERNATIVE_TRACK_PIECES;
|
||||
_currentTrackLiftHill &= ~CONSTRUCTION_LIFT_HILL_SELECTED;
|
||||
if (!gCheatsEnableChainLiftOnAllTrack)
|
||||
_currentTrackLiftHill &= ~CONSTRUCTION_LIFT_HILL_SELECTED;
|
||||
_currentTrackPrice = MONEY32_UNDEFINED;
|
||||
window_ride_construction_update_active_elements();
|
||||
break;
|
||||
|
||||
@@ -311,7 +311,8 @@ bool window_ride_construction_update_state(
|
||||
if (alternativeType != TrackElemType::None && (availablePieces & (1ULL << trackType)))
|
||||
{
|
||||
trackType = alternativeType;
|
||||
liftHillAndInvertedState &= ~CONSTRUCTION_LIFT_HILL_SELECTED;
|
||||
if (!gCheatsEnableChainLiftOnAllTrack)
|
||||
liftHillAndInvertedState &= ~CONSTRUCTION_LIFT_HILL_SELECTED;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user