Fix #25552: Clear Scenery does not show an error message about insufficient money if cash is negative

This commit is contained in:
Michael Steenbeek authored and GitHub committed 2025-11-28 17:53:41 +01:00
1 parent 23da3c6b46
commit 762d4fa7de
2 files changed
+17

No files matched your search

+1
View File
@@ -6,6 +6,7 @@
- Fix: [#22484] Lingering ghost entrance after placing park entrance.
- Fix: [#24952] Duplicate track designs when running via Steam without having RCT1 linked.
- Fix: [#25524] The track construction arrow does not immediately change position when deleting track pieces.
- Fix: [#25552] Clear Scenery does not show an error message about insufficient money if cash is negative.
- Fix: [#25565] Chairlift station ends are missing tunnels at certain rotations.
- Fix: [#25569] Placing park entrances in multiplayer does not show for other players, causing desyncs.
+16
View File
@@ -154,6 +154,10 @@ namespace OpenRCT2::GameActions
totalCost += res.Cost;
tileEdited = executing;
}
else if (res.Error == Status::InsufficientFunds)
{
totalCost += res.Cost;
}
}
break;
case TileElementType::SmallScenery:
@@ -172,6 +176,10 @@ namespace OpenRCT2::GameActions
totalCost += res.Cost;
tileEdited = executing;
}
else if (res.Error == Status::InsufficientFunds)
{
totalCost += res.Cost;
}
}
break;
case TileElementType::Wall:
@@ -189,6 +197,10 @@ namespace OpenRCT2::GameActions
totalCost += res.Cost;
tileEdited = executing;
}
else if (res.Error == Status::InsufficientFunds)
{
totalCost += res.Cost;
}
}
break;
case TileElementType::LargeScenery:
@@ -207,6 +219,10 @@ namespace OpenRCT2::GameActions
totalCost += res.Cost;
tileEdited = executing;
}
else if (res.Error == Status::InsufficientFunds)
{
totalCost += res.Cost;
}
}
break;
default: