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

Remove duplicated check

This is performed in the query and does not need to be in the execute. This was already removed in develop
This commit is contained in:
duncanspumpkin
2021-09-19 07:28:13 +01:00
parent 63b075695e
commit 028fb83d17

View File

@@ -211,7 +211,6 @@ GameActions::Result::Ptr LargeSceneryPlaceAction::Execute() const
return std::make_unique<LargeSceneryPlaceActionResult>(GameActions::Status::InvalidParameters);
}
uint32_t totalNumTiles = GetTotalNumTiles(sceneryEntry->tiles);
int16_t maxHeight = GetMaxSurfaceHeight(sceneryEntry->tiles);
if (_loc.z != 0)
@@ -221,12 +220,6 @@ GameActions::Result::Ptr LargeSceneryPlaceAction::Execute() const
res->Position.z = maxHeight;
if (!CheckMapCapacity(sceneryEntry->tiles, totalNumTiles))
{
log_error("No free map elements available");
return std::make_unique<LargeSceneryPlaceActionResult>(GameActions::Status::NoFreeElements);
}
// Allocate banner
Banner* banner = nullptr;
if (sceneryEntry->scrolling_mode != SCROLLING_MODE_NONE)