mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-15 11:03:00 +01:00
Fix ghost scenery not being removed
This commit is contained in:
@@ -1339,7 +1339,11 @@ static GameActions::Result::Ptr TrackDesignPlaceAllScenery(
|
||||
auto placementRes = TrackDesignPlaceSceneryElement(tds, mapCoord, mode, scenery, rotation, origin.z);
|
||||
if (placementRes->Error != GameActions::Status::Ok)
|
||||
{
|
||||
return placementRes;
|
||||
// Allow operation to fail when its removing ghosts.
|
||||
if (tds.PlaceOperation != PTD_OPERATION_REMOVE_GHOST)
|
||||
{
|
||||
return placementRes;
|
||||
}
|
||||
}
|
||||
cost += placementRes->Cost;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user