Make PathElement members adhere to code style

This commit is contained in:
Gymnasiast committed 2026-08-12 15:17:34 +02:00
1 parent 95025ba916
commit 2f9db0a5d4
45 files changed
+739 -739

No files matched your search

+3 -3
View File
@@ -128,11 +128,11 @@ template<bool invalidate, bool invalidateAllViewports>
static bool UpdatePathAnimation(
const PathElement& path, const CoordsXYZ& loc, const int32_t baseZ, const Viewport* const viewport)
{
if (path.IsQueue() && path.HasQueueBanner())
if (path.isQueue() && path.hasQueueBanner())
{
if constexpr (invalidate)
{
const int32_t direction = (path.GetQueueBannerDirection() + GetCurrentRotation()) & 3;
const int32_t direction = (path.getQueueBannerDirection() + GetCurrentRotation()) & 3;
if (direction == TILE_ELEMENT_DIRECTION_NORTH || direction == TILE_ELEMENT_DIRECTION_EAST)
{
Invalidate<invalidateAllViewports>(viewport, loc.x, loc.y, baseZ + 16, baseZ + 30, kMaxScrollingTextZoom);
@@ -550,7 +550,7 @@ static std::optional<UpdateType> IsElementAnimated(const TileElementBase& elemen
case TileElementType::path:
{
const auto* const path = element.asPath();
if (path->HasQueueBanner())
if (path->hasQueueBanner())
{
return std::optional(UpdateType::invalidate);
}