1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-02-01 19:25:12 +01:00

Refactor explicit constructor usage in TrackSetBrakeSpeedAction

This commit is contained in:
ζeh Matt
2021-10-21 20:36:56 +03:00
parent 60838f563e
commit ab248a67df

View File

@@ -57,14 +57,14 @@ GameActions::Result::Ptr TrackSetBrakeSpeedAction::QueryExecute(bool isExecuting
if (!LocationValid(_loc))
{
return MakeResult(GameActions::Status::NotOwned, STR_NONE);
return MakeResult(GameActions::Status::NotOwned, STR_NONE, STR_NONE);
}
TileElement* tileElement = map_get_track_element_at_of_type(_loc, _trackType);
if (tileElement == nullptr)
{
log_warning("Invalid game command for setting brakes speed. x = %d, y = %d", _loc.x, _loc.y);
return MakeResult(GameActions::Status::InvalidParameters, STR_NONE);
return MakeResult(GameActions::Status::InvalidParameters, STR_NONE, STR_NONE);
}
if (isExecuting)