1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-20 21:43:06 +01:00

Drop unused parameter from GetLegacyPeepAnimationObjects (#23877)

This commit is contained in:
Aaron van Geffen
2025-02-22 17:52:41 +01:00
committed by GitHub
parent 5561c53bd3
commit cb3dd87943
5 changed files with 5 additions and 5 deletions

View File

@@ -2292,7 +2292,7 @@ const std::vector<std::string_view> peepAnimObjects = {
"rct2.peep_animations.entertainer_snowman",
};
const std::vector<std::string_view>& GetLegacyPeepAnimationObjects(const ObjectList& entryList)
const std::vector<std::string_view>& GetLegacyPeepAnimationObjects()
{
return peepAnimObjects;
}

View File

@@ -40,7 +40,7 @@ void UpdateFootpathsFromMapping(
ObjectList& requiredObjects, ObjectEntryIndex& surfaceCount, ObjectEntryIndex& railingCount, ObjectEntryIndex entryIndex,
const OpenRCT2::RCT2::FootpathMapping* footpathMapping);
const std::vector<std::string_view>& GetLegacyPeepAnimationObjects(const ObjectList& entryList);
const std::vector<std::string_view>& GetLegacyPeepAnimationObjects();
void ConvertPeepAnimationTypeToObjects(OpenRCT2::GameState_t& gameState);
/**

View File

@@ -385,7 +385,7 @@ namespace OpenRCT2
if (version < kPeepAnimationObjectsVersion)
{
auto animObjects = GetLegacyPeepAnimationObjects(requiredObjects);
auto animObjects = GetLegacyPeepAnimationObjects();
AppendRequiredObjects(requiredObjects, ObjectType::peepAnimations, animObjects);
}

View File

@@ -1559,7 +1559,7 @@ namespace OpenRCT2::RCT1
AppendRequiredObjects(result, ObjectType::scenarioText, std::vector<std::string_view>({ desc.textObjectId }));
// Add all legacy peep animation objects
auto animObjects = GetLegacyPeepAnimationObjects(result);
auto animObjects = GetLegacyPeepAnimationObjects();
AppendRequiredObjects(result, ObjectType::peepAnimations, animObjects);
return result;

View File

@@ -1904,7 +1904,7 @@ namespace OpenRCT2::RCT2
AppendRequiredObjects(
objectList, ObjectType::scenarioText, std::vector<std::string_view>({ desc.textObjectId }));
auto animObjects = GetLegacyPeepAnimationObjects(objectList);
auto animObjects = GetLegacyPeepAnimationObjects();
AppendRequiredObjects(objectList, ObjectType::peepAnimations, animObjects);
return objectList;