forked from rosebudai/OpenRCT2-Web
Rename members of RailingEntrySupportType
This commit is contained in:
4 files changed
+8
-8
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user