From 3325898e2584a74c6d62afe021e41b3157df4f84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CE=B6eh=20Matt?= <5415177+ZehMatt@users.noreply.github.com> Date: Wed, 20 Oct 2021 16:37:32 +0300 Subject: [PATCH] Apply review suggestions --- src/openrct2/peep/Peep.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/openrct2/peep/Peep.cpp b/src/openrct2/peep/Peep.cpp index dd18031c90..e5b1ba67d8 100644 --- a/src/openrct2/peep/Peep.cpp +++ b/src/openrct2/peep/Peep.cpp @@ -597,13 +597,10 @@ std::unique_ptr Peep::Place(const TileCoordsXYZ& location, res->Error != GameActions::Status::Ok) { const auto stringId = std::get(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::Status::NoClearance, STR_ERR_CANT_PLACE_PERSON_HERE, stringId, res->ErrorMessageArgs.data()); - } + return std::make_unique( + GameActions::Status::NoClearance, STR_ERR_CANT_PLACE_PERSON_HERE, stringId, res->ErrorMessageArgs.data()); } }