1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 23:04:36 +01:00

Use specific error stringIDs

This commit is contained in:
Peter Froud
2024-03-17 00:48:36 -07:00
committed by Gymnasiast
parent 276ff311cf
commit 2b1d5ad9b7
30 changed files with 131 additions and 73 deletions

View File

@@ -68,7 +68,8 @@ GameActions::Result FootpathRemoveAction::Query() const
TileElement* footpathElement = GetFootpathElement();
if (footpathElement == nullptr)
{
return GameActions::Result(GameActions::Status::InvalidParameters, STR_CANT_REMOVE_FOOTPATH_FROM_HERE, STR_NONE);
return GameActions::Result(
GameActions::Status::InvalidParameters, STR_CANT_REMOVE_FOOTPATH_FROM_HERE, STR_ERR_PATH_ELEMENT_NOT_FOUND);
}
res.Cost = GetRefundPrice(footpathElement);