Rename members of MiniGolfAnimation

This commit is contained in:
Gymnasiast committed 2026-08-07 06:57:38 +02:00
1 parent b229ff8f60
commit ae5dc4422a
5 files changed
+831 -831

No files matched your search

@@ -135,7 +135,7 @@ namespace OpenRCT2
void VehicleVisualMiniGolfBall(
PaintSession& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle)
{
if (vehicle->mini_golf_current_animation != MiniGolfAnimation::PlaceBallDown)
if (vehicle->mini_golf_current_animation != MiniGolfAnimation::placeBallDown)
{
return;
}
+1 -1
View File
@@ -3086,7 +3086,7 @@ static Vehicle* VehicleCreateCar(
{
subposition = VehicleTrackSubposition::miniGolfStart9;
vehicle->var_D3 = 0;
vehicle->mini_golf_current_animation = MiniGolfAnimation::Walk;
vehicle->mini_golf_current_animation = MiniGolfAnimation::walk;
vehicle->miniGolfFlags.clearAll();
}
if (carEntry.flags.has(CarEntryFlag::isReverserCoasterBogie))
+4 -4
View File
@@ -356,18 +356,18 @@ void RideUpdateMeasurementsSpecialElements_MiniGolf(Ride& ride, const TrackElemT
auto* curPeep = getGameState().entities.TryGetEntity<Guest>(peep[0]);
if (curPeep != nullptr)
{
if (animation == MiniGolfAnimation::SwingLeft)
if (animation == MiniGolfAnimation::swingLeft)
{
if (curPeep->PeepId & 7)
{
animation = MiniGolfAnimation::Swing;
animation = MiniGolfAnimation::swing;
}
}
if (animation == MiniGolfAnimation::PuttLeft)
if (animation == MiniGolfAnimation::puttLeft)
{
if (curPeep->PeepId & 7)
{
animation = MiniGolfAnimation::Putt;
animation = MiniGolfAnimation::putt;
}
}
}
+9 -9
View File
@@ -470,15 +470,15 @@ enum class MiniGolfState : int16_t
enum class MiniGolfAnimation : uint8_t
{
Walk,
PlaceBallDown,
SwingLeft,
PickupBall,
Jump,
PlaceBallUp,
PuttLeft,
Swing,
Putt,
walk,
placeBallDown,
swingLeft,
pickupBall,
jump,
placeBallUp,
puttLeft,
swing,
putt,
};
enum BoatHireSubState : uint8_t
File diff suppressed because it is too large. Load diff