Rename members of GameActions::Status

This commit is contained in:
Gymnasiast committed 2025-12-12 11:41:49 +01:00
1 parent 26289d096b
commit 5ffee91c8a
110 files changed
+728 -728

No files matched your search

+4 -4
View File
@@ -1444,7 +1444,7 @@ void ClearElementAt(const CoordsXY& loc, TileElement** elementPtr)
auto parkEntranceRemoveAction = GameActions::ParkEntranceRemoveAction(CoordsXYZ{ seqLoc, element->GetBaseZ() });
auto result = GameActions::ExecuteNested(&parkEntranceRemoveAction, gameState);
// If asking nicely did not work, forcibly remove this to avoid an infinite loop.
if (result.Error != GameActions::Status::Ok)
if (result.Error != GameActions::Status::ok)
{
TileElementRemove(element);
}
@@ -1456,7 +1456,7 @@ void ClearElementAt(const CoordsXY& loc, TileElement** elementPtr)
auto wallRemoveAction = GameActions::WallRemoveAction(wallLocation);
auto result = GameActions::ExecuteNested(&wallRemoveAction, gameState);
// If asking nicely did not work, forcibly remove this to avoid an infinite loop.
if (result.Error != GameActions::Status::Ok)
if (result.Error != GameActions::Status::ok)
{
TileElementRemove(element);
}
@@ -1468,7 +1468,7 @@ void ClearElementAt(const CoordsXY& loc, TileElement** elementPtr)
{ loc.x, loc.y, element->GetBaseZ(), element->GetDirection() }, element->AsLargeScenery()->GetSequenceIndex());
auto result = GameActions::ExecuteNested(&removeSceneryAction, gameState);
// If asking nicely did not work, forcibly remove this to avoid an infinite loop.
if (result.Error != GameActions::Status::Ok)
if (result.Error != GameActions::Status::ok)
{
TileElementRemove(element);
}
@@ -1480,7 +1480,7 @@ void ClearElementAt(const CoordsXY& loc, TileElement** elementPtr)
{ loc.x, loc.y, element->GetBaseZ(), element->AsBanner()->GetPosition() });
auto result = GameActions::ExecuteNested(&bannerRemoveAction, gameState);
// If asking nicely did not work, forcibly remove this to avoid an infinite loop.
if (result.Error != GameActions::Status::Ok)
if (result.Error != GameActions::Status::ok)
{
TileElementRemove(element);
}