mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-06 06:32:56 +01:00
Remove unnecessary parameter from Ride::Open (#13368)
Ride::Open is only ever called with RIDE_STATUS_OPEN, so the parameter is redundant.
This commit is contained in:
@@ -110,7 +110,7 @@ public:
|
||||
}
|
||||
else if (_status == RIDE_STATUS_OPEN)
|
||||
{
|
||||
if (!ride->Open(_status == RIDE_STATUS_OPEN, false))
|
||||
if (!ride->Open(false))
|
||||
{
|
||||
res->Error = GameActions::Status::Unknown;
|
||||
res->ErrorMessage = gGameCommandErrorText;
|
||||
@@ -220,7 +220,7 @@ public:
|
||||
return res;
|
||||
}
|
||||
}
|
||||
else if (!ride->Open(_status == RIDE_STATUS_OPEN, true))
|
||||
else if (!ride->Open(true))
|
||||
{
|
||||
res->Error = GameActions::Status::Unknown;
|
||||
res->ErrorMessage = gGameCommandErrorText;
|
||||
|
||||
@@ -5241,7 +5241,7 @@ bool Ride::Test(int32_t newStatus, bool isApplying)
|
||||
*
|
||||
* rct2: 0x006B4EEA
|
||||
*/
|
||||
bool Ride::Open(int32_t goingToBeOpen, bool isApplying)
|
||||
bool Ride::Open(bool isApplying)
|
||||
{
|
||||
CoordsXYE trackElement, problematicTrackElement = {};
|
||||
|
||||
@@ -5266,7 +5266,7 @@ bool Ride::Open(int32_t goingToBeOpen, bool isApplying)
|
||||
return false;
|
||||
}
|
||||
|
||||
if (goingToBeOpen && isApplying)
|
||||
if (isApplying)
|
||||
{
|
||||
ChainQueues();
|
||||
lifecycle_flags |= RIDE_LIFECYCLE_EVER_BEEN_OPENED;
|
||||
|
||||
@@ -409,7 +409,7 @@ public:
|
||||
|
||||
void StopGuestsQueuing();
|
||||
|
||||
bool Open(int32_t goingToBeOpen, bool isApplying);
|
||||
bool Open(bool isApplying);
|
||||
bool Test(int32_t newStatus, bool isApplying);
|
||||
|
||||
RideMode GetDefaultMode() const;
|
||||
|
||||
Reference in New Issue
Block a user