diff --git a/distribution/openrct2.d.ts b/distribution/openrct2.d.ts index cfd10e3fd4..d40e0c1718 100644 --- a/distribution/openrct2.d.ts +++ b/distribution/openrct2.d.ts @@ -356,7 +356,7 @@ declare global { } type TileElementType = - "surface" | "footpath" | "track" | "small_scenery" | "wall" | "entrance" | "large_scenery" | "banner" | "openrct2_corrupt"; + "surface" | "footpath" | "track" | "small_scenery" | "wall" | "entrance" | "large_scenery" | "banner" | "openrct2_corrupt_deprecated"; interface BaseTileElement { type: TileElementType; diff --git a/src/openrct2/scripting/ScTile.hpp b/src/openrct2/scripting/ScTile.hpp index 620c6f8fee..d9186b00c7 100644 --- a/src/openrct2/scripting/ScTile.hpp +++ b/src/openrct2/scripting/ScTile.hpp @@ -62,7 +62,7 @@ namespace OpenRCT2::Scripting case TILE_ELEMENT_TYPE_BANNER: return "banner"; case TILE_ELEMENT_TYPE_CORRUPT: - return "openrct2_corrupt"; + return "openrct2_corrupt_deprecated"; default: return "unknown"; } @@ -87,7 +87,7 @@ namespace OpenRCT2::Scripting type = TILE_ELEMENT_TYPE_LARGE_SCENERY; else if (value == "banner") type = TILE_ELEMENT_TYPE_BANNER; - else if (value == "openrct2_corrupt") + else if (value == "openrct2_corrupt_deprecated") type = TILE_ELEMENT_TYPE_CORRUPT; else return;