forked from rosebudai/OpenRCT2-Web
Rename members of GameActions::Status
This commit is contained in:
110 files changed
+728
-728
No files matched your search
@@ -1276,7 +1276,7 @@ namespace OpenRCT2::Ui::Windows
|
||||
auto footpathPlaceAction = GameActions::FootpathPlaceAction(
|
||||
tile.position, tile.slope, selectedType, gFootpathSelection.Railings, kInvalidDirection, constructFlags);
|
||||
auto result = GameActions::Execute(&footpathPlaceAction, getGameState());
|
||||
if (result.Error == GameActions::Status::Ok)
|
||||
if (result.Error == GameActions::Status::ok)
|
||||
{
|
||||
anySuccess = true;
|
||||
cost += result.Cost;
|
||||
@@ -1326,7 +1326,7 @@ namespace OpenRCT2::Ui::Windows
|
||||
{ *mapPos, placement.baseZ }, placement.slope, selectedType, gFootpathSelection.Railings, kInvalidDirection,
|
||||
constructFlags);
|
||||
footpathPlaceAction.SetCallback([this](const GameActions::GameAction* ga, const GameActions::Result* result) {
|
||||
if (result->Error == GameActions::Status::Ok)
|
||||
if (result->Error == GameActions::Status::ok)
|
||||
{
|
||||
// Don't play sound if it is no cost to prevent multiple sounds. TODO: make this work in no money scenarios
|
||||
if (result->Cost != 0)
|
||||
@@ -1420,7 +1420,7 @@ namespace OpenRCT2::Ui::Windows
|
||||
|
||||
footpathPlaceAction.SetCallback(
|
||||
[footpathLoc](const GameActions::GameAction* ga, const GameActions::Result* result) {
|
||||
if (result->Error == GameActions::Status::Ok)
|
||||
if (result->Error == GameActions::Status::ok)
|
||||
{
|
||||
Audio::Play3D(OpenRCT2::Audio::SoundId::placeItem, result->Position);
|
||||
}
|
||||
@@ -1432,7 +1432,7 @@ namespace OpenRCT2::Ui::Windows
|
||||
return;
|
||||
}
|
||||
|
||||
if (result->Error == GameActions::Status::Ok)
|
||||
if (result->Error == GameActions::Status::ok)
|
||||
{
|
||||
if (_footpathConstructSlope == SlopePitch::flat)
|
||||
{
|
||||
@@ -1942,7 +1942,7 @@ namespace OpenRCT2::Ui::Windows
|
||||
res = GameActions::Execute(&footpathPlaceAction, getGameState());
|
||||
// The latter status will be returned if there is already path at the tile in question, to prevent a ghost
|
||||
// from glitching through the existing path.
|
||||
if (res.Error == GameActions::Status::Ok || res.Error == GameActions::Status::ItemAlreadyPlaced)
|
||||
if (res.Error == GameActions::Status::ok || res.Error == GameActions::Status::itemAlreadyPlaced)
|
||||
{
|
||||
succesfulTiles.emplace_back(tile);
|
||||
cost += res.Cost;
|
||||
|
||||
Reference in new issue
Block a user