mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix ghost scenery not being removed
This commit is contained in:
parent
16ce6641f0
commit
00c5a440be
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue