1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-17 12:03:07 +01:00

Fix bit shifts in ride construction window

This commit is contained in:
X123M3-256
2022-07-29 09:54:12 +01:00
parent 0347ee62cb
commit ffbf8f4706

View File

@@ -2111,7 +2111,7 @@ public:
continue;
_currentPossibleRideConfigurations[currentPossibleRideConfigurationIndex] = trackType;
_currentDisabledSpecialTrackPieces |= (1 << currentPossibleRideConfigurationIndex);
_currentDisabledSpecialTrackPieces |= (1ULL << currentPossibleRideConfigurationIndex);
if (_currentTrackPieceDirection < 4 && slope == _previousTrackSlopeEnd && bank == _previousTrackBankEnd
&& (trackType != TrackElemType::TowerBase
|| currentRide->GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_ALLOW_EXTRA_TOWER_BASES)))
@@ -2512,7 +2512,7 @@ private:
for (int32_t i = 0; i < 64; i++)
{
if (_currentDisabledSpecialTrackPieces & (1 << i))
if (_currentDisabledSpecialTrackPieces & (1ULL << i))
{
Dropdown::SetDisabled(i, true);
}