diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 12e19d1512..db61c9c601 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -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. diff --git a/src/openrct2/actions/ClearAction.cpp b/src/openrct2/actions/ClearAction.cpp index 379a844d9a..756632765c 100644 --- a/src/openrct2/actions/ClearAction.cpp +++ b/src/openrct2/actions/ClearAction.cpp @@ -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: