1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00

Refactor explicit constructor usage in StaffSetColourAction

This commit is contained in:
ζeh Matt
2021-10-21 20:28:16 +03:00
parent cce3609c75
commit 5a237bd663

View File

@@ -41,7 +41,7 @@ GameActions::Result::Ptr StaffSetColourAction::Query() const
auto staffType = static_cast<StaffType>(_staffType);
if (staffType != StaffType::Handyman && staffType != StaffType::Mechanic && staffType != StaffType::Security)
{
return MakeResult(GameActions::Status::InvalidParameters, STR_NONE);
return MakeResult(GameActions::Status::InvalidParameters, STR_NONE, STR_NONE);
}
return MakeResult();
}
@@ -51,7 +51,7 @@ GameActions::Result::Ptr StaffSetColourAction::Execute() const
// Update global uniform colour property
if (!staff_set_colour(static_cast<StaffType>(_staffType), _colour))
{
return MakeResult(GameActions::Status::InvalidParameters, STR_NONE);
return MakeResult(GameActions::Status::InvalidParameters, STR_NONE, STR_NONE);
}
// Update each staff member's uniform