mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-06 06:32:56 +01:00
Use descriptive error strings for two GameAction::Results
- Fix error when setting brake speed outside park - Fix error when pasting but reached tile limit
This commit is contained in:
@@ -57,7 +57,7 @@ GameActions::Result TrackSetBrakeSpeedAction::QueryExecute(bool isExecuting) con
|
||||
|
||||
if (!LocationValid(_loc))
|
||||
{
|
||||
return GameActions::Result(GameActions::Status::NotOwned, STR_NONE, STR_NONE);
|
||||
return GameActions::Result(GameActions::Status::InvalidParameters, STR_CANT_CHANGE_THIS, STR_OFF_EDGE_OF_MAP);
|
||||
}
|
||||
|
||||
TileElement* tileElement = MapGetTrackElementAtOfType(_loc, _trackType);
|
||||
|
||||
@@ -298,7 +298,7 @@ namespace OpenRCT2::TileInspector
|
||||
// Make sure there is enough space for the new element
|
||||
if (!MapCheckCapacityAndReorganise(loc))
|
||||
{
|
||||
return GameActions::Result(GameActions::Status::NoFreeElements, STR_NONE, STR_NONE);
|
||||
return GameActions::Result(GameActions::Status::NoFreeElements, STR_CANT_PASTE, STR_TILE_ELEMENT_LIMIT_REACHED);
|
||||
}
|
||||
|
||||
auto tileLoc = TileCoordsXY(loc);
|
||||
|
||||
Reference in New Issue
Block a user