1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-24 15:24:30 +01:00

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

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

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: