1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-02-02 19:56:13 +01:00

Refactor more constants to kConstant notation

This commit is contained in:
Michael Steenbeek
2025-01-22 17:16:55 +01:00
committed by GitHub
parent b9486b9eb7
commit b0c99fcb6c
254 changed files with 1244 additions and 1249 deletions

View File

@@ -1134,7 +1134,7 @@ namespace OpenRCT2::Scripting
{
auto* el = _element->AsPath();
auto index = el->GetLegacyPathEntryIndex();
if (index != OBJECT_ENTRY_INDEX_NULL)
if (index != kObjectEntryIndexNull)
duk_push_int(ctx, index);
else
duk_push_null(ctx);
@@ -1784,7 +1784,7 @@ namespace OpenRCT2::Scripting
{
auto* el = _element->AsPath();
auto index = el->GetSurfaceEntryIndex();
if (index != OBJECT_ENTRY_INDEX_NULL)
if (index != kObjectEntryIndexNull)
{
duk_push_int(ctx, index);
}
@@ -1822,7 +1822,7 @@ namespace OpenRCT2::Scripting
{
auto* el = _element->AsPath();
auto index = el->GetRailingsEntryIndex();
if (index != OBJECT_ENTRY_INDEX_NULL)
if (index != kObjectEntryIndexNull)
{
duk_push_int(ctx, index);
}
@@ -1969,7 +1969,7 @@ namespace OpenRCT2::Scripting
if (el != nullptr)
{
auto index = el->GetLegacyPathEntryIndex();
if (index != OBJECT_ENTRY_INDEX_NULL)
if (index != kObjectEntryIndexNull)
{
duk_push_int(ctx, index);
}
@@ -2006,7 +2006,7 @@ namespace OpenRCT2::Scripting
if (el != nullptr)
{
auto index = el->GetSurfaceEntryIndex();
if (index != OBJECT_ENTRY_INDEX_NULL)
if (index != kObjectEntryIndexNull)
{
duk_push_int(ctx, index);
}