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:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
/**
|
||||
|
||||
@@ -385,7 +385,7 @@ namespace OpenRCT2
|
||||
|
||||
if (version < kPeepAnimationObjectsVersion)
|
||||
{
|
||||
auto animObjects = GetLegacyPeepAnimationObjects(requiredObjects);
|
||||
auto animObjects = GetLegacyPeepAnimationObjects();
|
||||
AppendRequiredObjects(requiredObjects, ObjectType::peepAnimations, animObjects);
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user