1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-31 02:35:46 +01:00

Rename PeepAnimationType::None to PeepAnimationType::Walking (#23317)

This commit is contained in:
Aaron van Geffen
2024-12-04 17:09:17 +01:00
committed by GitHub
parent a55a690db3
commit f65ef67260
11 changed files with 164 additions and 164 deletions

View File

@@ -18,7 +18,7 @@
namespace OpenRCT2::Scripting
{
static const DukEnumMap<PeepAnimationType> availableHandymanAnimations({
{ "walking", PeepAnimationType::None },
{ "walking", PeepAnimationType::Walking },
{ "watchRide", PeepAnimationType::WatchRide },
{ "hanging", PeepAnimationType::Hanging },
{ "staffMower", PeepAnimationType::StaffMower },
@@ -29,7 +29,7 @@ namespace OpenRCT2::Scripting
});
static const DukEnumMap<PeepAnimationType> availableMechanicAnimations({
{ "walking", PeepAnimationType::None },
{ "walking", PeepAnimationType::Walking },
{ "watchRide", PeepAnimationType::WatchRide },
{ "hanging", PeepAnimationType::Hanging },
{ "drowning", PeepAnimationType::Drowning },
@@ -43,14 +43,14 @@ namespace OpenRCT2::Scripting
});
static const DukEnumMap<PeepAnimationType> availableSecurityAnimations({
{ "walking", PeepAnimationType::None },
{ "walking", PeepAnimationType::Walking },
{ "watchRide", PeepAnimationType::WatchRide },
{ "hanging", PeepAnimationType::Hanging },
{ "drowning", PeepAnimationType::Drowning },
});
static const DukEnumMap<PeepAnimationType> availableEntertainerAnimations({
{ "walking", PeepAnimationType::None },
{ "walking", PeepAnimationType::Walking },
{ "watchRide", PeepAnimationType::WatchRide },
{ "wave", PeepAnimationType::EatFood }, // NB: this not a typo
{ "hanging", PeepAnimationType::Hanging },
@@ -136,7 +136,7 @@ namespace OpenRCT2::Scripting
// Reset state to walking to prevent invalid actions from carrying over
peep->Action = PeepActionType::Walking;
peep->AnimationType = peep->NextAnimationType = PeepAnimationType::None;
peep->AnimationType = peep->NextAnimationType = PeepAnimationType::Walking;
}
}