Rename members of RailingEntrySupportType

This commit is contained in:
Gymnasiast committed 2026-01-11 19:25:52 +01:00
1 parent 85cc79b31a
commit 41eb24dbd7
4 files changed
+8 -8

No files matched your search

+1 -1
View File
@@ -29,7 +29,7 @@ namespace OpenRCT2
GetImageTable().Read(context, stream);
// Validate properties
if (_legacyType.support_type >= RailingEntrySupportType::Count)
if (_legacyType.support_type >= RailingEntrySupportType::count)
{
context->LogError(ObjectError::invalidProperty, "RailingEntrySupportType not supported.");
}
@@ -58,7 +58,7 @@ namespace OpenRCT2
if (Colour != COLOUR_NULL)
helper = helper.WithPrimary(Colour);
if (SupportType == RailingEntrySupportType::Pole)
if (SupportType == RailingEntrySupportType::pole)
{
auto img = helper.WithIndex(BridgeImageId + 20 + 15);
for (int i = 0; i < 2; i++)
@@ -106,8 +106,8 @@ namespace OpenRCT2
RailingEntrySupportType FootpathRailingsObject::ParseSupportType(std::string_view s)
{
if (s == "pole")
return RailingEntrySupportType::Pole;
return RailingEntrySupportType::pole;
else /* if (s == "box") */
return RailingEntrySupportType::Box;
return RailingEntrySupportType::box;
}
} // namespace OpenRCT2
@@ -834,7 +834,7 @@ void PaintPath(PaintSession& session, uint16_t height, const PathElement& tileEl
auto hasSupports = ShouldDrawSupports(session, tileElement, height);
auto pathPaintInfo = GetFootpathPaintInfo(tileElement);
if (pathPaintInfo.SupportType == RailingEntrySupportType::Pole)
if (pathPaintInfo.SupportType == RailingEntrySupportType::pole)
{
PathPaintPoleSupport(session, tileElement, height, pathPaintInfo, hasSupports, imageTemplate, sceneryImageTemplate);
}
+3 -3
View File
@@ -36,9 +36,9 @@ constexpr auto kPathClearance = 4 * kCoordsZStep;
enum class RailingEntrySupportType : uint8_t
{
Box = 0,
Pole = 1,
Count
box = 0,
pole = 1,
count
};
struct PathSurfaceDescriptor