Drop unused parameter from GetLegacyPeepAnimationObjects (#23877)

This commit is contained in:
Aaron van Geffen authored and GitHub committed 2025-02-22 16:52:41 +00:00
1 parent 5561c53bd3
commit cb3dd87943
5 files changed
+5 -5

No files matched your search

+1 -1
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;
}
+1 -1
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);
/**
+1 -1
View File
@@ -385,7 +385,7 @@ namespace OpenRCT2
if (version < kPeepAnimationObjectsVersion)
{
auto animObjects = GetLegacyPeepAnimationObjects(requiredObjects);
auto animObjects = GetLegacyPeepAnimationObjects();
AppendRequiredObjects(requiredObjects, ObjectType::peepAnimations, animObjects);
}
+1 -1
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;
+1 -1
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;