1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-30 18:25:16 +01:00

Apply review suggestions

This commit is contained in:
ζeh Matt
2021-10-20 16:37:32 +03:00
parent 4d72c29ca3
commit 3325898e25

View File

@@ -597,13 +597,10 @@ std::unique_ptr<GameActions::Result> Peep::Place(const TileCoordsXYZ& location,
res->Error != GameActions::Status::Ok)
{
const auto stringId = std::get<rct_string_id>(res->ErrorMessage);
if (stringId != STR_RAISE_OR_LOWER_LAND_FIRST)
if (stringId != STR_RAISE_OR_LOWER_LAND_FIRST && stringId != STR_FOOTPATH_IN_THE_WAY)
{
if (stringId != STR_FOOTPATH_IN_THE_WAY)
{
return std::make_unique<GameActions::Result>(
GameActions::Status::NoClearance, STR_ERR_CANT_PLACE_PERSON_HERE, stringId, res->ErrorMessageArgs.data());
}
return std::make_unique<GameActions::Result>(
GameActions::Status::NoClearance, STR_ERR_CANT_PLACE_PERSON_HERE, stringId, res->ErrorMessageArgs.data());
}
}