Fix Clear Scenery refunding ghost tile elements (#10941)

This commit is contained in:
Michael Steenbeek 2020-03-15 23:26:32 +01:00 committed by GitHub
parent 7219c880e2
commit e32518208f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -34,6 +34,7 @@
- Fix: [#10822] Can place too many peep spawns.
- Fix: [#10898] Banner text has an offset in tile inspector window.
- Fix: [#10904] RCT1/LL-scenarios with red water won't open.
- Fix: [#10941] The Clear Scenery tool gives refunds for ghost elements.
- Improved: [#682] The staff patrol area is now drawn on the water, instead of on the surface under water.
- Improved: [#10858] Added horizontal grid lines to finance charts.
- Improved: [#10884] Added y-axes and labels to park window charts.

View File

@ -148,6 +148,9 @@ private:
return totalCost;
do
{
if (tileElement->IsGhost())
continue;
auto type = tileElement->GetType();
switch (type)
{