mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-26 08:14:38 +01:00
Remove unused variables
This commit is contained in:
@@ -42,12 +42,12 @@ void ParkSetEntranceFeeAction::Serialise(DataSerialiser& stream)
|
||||
|
||||
GameActions::Result ParkSetEntranceFeeAction::Query() const
|
||||
{
|
||||
if (bool noMoney = (GetGameState().ParkFlags & PARK_FLAGS_NO_MONEY) != 0)
|
||||
if ((GetGameState().ParkFlags & PARK_FLAGS_NO_MONEY) != 0)
|
||||
{
|
||||
LOG_ERROR("Can't set park entrance fee because the park has no money");
|
||||
return GameActions::Result(GameActions::Status::Disallowed, STR_ERR_CANT_CHANGE_PARK_ENTRANCE_FEE, STR_NONE);
|
||||
}
|
||||
else if (bool forceFreeEntry = !ParkEntranceFeeUnlocked())
|
||||
else if (!ParkEntranceFeeUnlocked())
|
||||
{
|
||||
LOG_ERROR("Park entrance fee is locked");
|
||||
return GameActions::Result(GameActions::Status::Disallowed, STR_ERR_CANT_CHANGE_PARK_ENTRANCE_FEE, STR_NONE);
|
||||
|
||||
Reference in New Issue
Block a user