From 4502be0fb2f2d96a7522b6eee8a76c69f0e986b1 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Thu, 6 Aug 2026 18:40:41 +0200 Subject: [PATCH] Rename members of Plane --- .../paint/track/thrill/MagicCarpet.cpp | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/openrct2/paint/track/thrill/MagicCarpet.cpp b/src/openrct2/paint/track/thrill/MagicCarpet.cpp index a519af66f7..565525aafb 100644 --- a/src/openrct2/paint/track/thrill/MagicCarpet.cpp +++ b/src/openrct2/paint/track/thrill/MagicCarpet.cpp @@ -23,8 +23,8 @@ using namespace OpenRCT2; enum class Plane { - Back, - Front, + back, + front, }; enum @@ -59,11 +59,11 @@ static ImageIndex GetMagicCarpetFrameImage(Plane plane, Direction direction) { if (direction & 1) { - return plane == Plane::Back ? SPR_MAGIC_CARPET_FRAME_NE : SPR_MAGIC_CARPET_FRAME_SW; + return plane == Plane::back ? SPR_MAGIC_CARPET_FRAME_NE : SPR_MAGIC_CARPET_FRAME_SW; } else { - return plane == Plane::Back ? SPR_MAGIC_CARPET_FRAME_NW : SPR_MAGIC_CARPET_FRAME_SE; + return plane == Plane::back ? SPR_MAGIC_CARPET_FRAME_NW : SPR_MAGIC_CARPET_FRAME_SE; } } @@ -72,11 +72,11 @@ static ImageIndex GetMagicCarpetPendulumImage(Plane plane, Direction direction, ImageIndex imageIndex; if (direction & 1) { - imageIndex = plane == Plane::Back ? SPR_MAGIC_CARPET_PENDULUM_NE : SPR_MAGIC_CARPET_PENDULUM_SW; + imageIndex = plane == Plane::back ? SPR_MAGIC_CARPET_PENDULUM_NE : SPR_MAGIC_CARPET_PENDULUM_SW; } else { - imageIndex = plane == Plane::Back ? SPR_MAGIC_CARPET_PENDULUM_NW : SPR_MAGIC_CARPET_PENDULUM_SE; + imageIndex = plane == Plane::back ? SPR_MAGIC_CARPET_PENDULUM_NW : SPR_MAGIC_CARPET_PENDULUM_SE; } if (direction & 2) { @@ -121,7 +121,7 @@ static void PaintMagicCarpetFrame( auto imageIndex = GetMagicCarpetFrameImage(plane, direction); auto imageTemplate = session.TrackColours; auto imageId = imageTemplate.WithIndex(imageIndex); - if (plane == Plane::Back) + if (plane == Plane::back) { PaintAddImageAsParent(session, imageId, offset, bb); } @@ -201,11 +201,11 @@ static void PaintMagicCarpetStructure( }; BoundBoxXYZ bb = { { kMagicCarpetBounds[direction].offset, height + 7 }, { kMagicCarpetBounds[direction].length, 127 } }; - PaintMagicCarpetFrame(session, Plane::Back, direction, offset, bb); - PaintMagicCarpetPendulum(session, Plane::Back, swing, direction, offset, bb); + PaintMagicCarpetFrame(session, Plane::back, direction, offset, bb); + PaintMagicCarpetPendulum(session, Plane::back, swing, direction, offset, bb); PaintMagicCarpetVehicle(session, ride, direction, swing, offset, bb, stationColour); - PaintMagicCarpetPendulum(session, Plane::Front, swing, direction, offset, bb); - PaintMagicCarpetFrame(session, Plane::Front, direction, offset, bb); + PaintMagicCarpetPendulum(session, Plane::front, swing, direction, offset, bb); + PaintMagicCarpetFrame(session, Plane::front, direction, offset, bb); session.CurrentlyDrawnEntity = nullptr; session.InteractionType = ViewportInteractionItem::ride;