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:
committed by
GitHub
parent
23da3c6b46
commit
762d4fa7de
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user