Do not turn off chain when building downhill if chain cheat is on

This commit is contained in:
spacek531 2022-03-28 13:34:37 -07:00 committed by GitHub
parent bd7ac0bace
commit 047a7f8090
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -3130,7 +3130,7 @@ static void UpdateLiftHillSelected(int32_t slope)
{
_currentTrackSlopeEnd = slope;
_currentTrackPrice = MONEY32_UNDEFINED;
if (_rideConstructionState == RideConstructionState::Front)
if (_rideConstructionState == RideConstructionState::Front && !gCheatsEnableChainLiftOnAllTrack)
{
switch (slope)
{

View File

@ -683,8 +683,8 @@ void ride_construction_set_default_next_piece()
// Set track slope and lift hill
_currentTrackSlopeEnd = slope;
_previousTrackSlopeEnd = slope;
_currentTrackLiftHill = tileElement->AsTrack()->HasChain() && slope != TRACK_SLOPE_DOWN_25
&& slope != TRACK_SLOPE_DOWN_60;
_currentTrackLiftHill = tileElement->AsTrack()->HasChain()
&& ((slope != TRACK_SLOPE_DOWN_25 && slope != TRACK_SLOPE_DOWN_60) || gCheatsEnableChainLiftOnAllTrack);
break;
case RideConstructionState::Back:
direction = direction_reverse(_currentTrackPieceDirection);