Codefix: wrong parameter names and partially missing parameters

This commit is contained in:
Rubidium
2026-02-01 08:14:02 +01:00
committed by rubidium42
parent f25e1f8be1
commit c6c06e13eb
73 changed files with 206 additions and 113 deletions
+4 -2
View File
@@ -97,6 +97,7 @@ SpriteFile &OpenCachedSpriteFile(const std::string &filename, Subdirectory subdi
/**
* Skip the given amount of sprite graphics data.
* @param file The file to read from.
* @param type the type of sprite (compressed etc)
* @param num the amount of sprites to skip
* @return true if the data could be correctly skipped.
@@ -168,7 +169,7 @@ uint32_t GetSpriteLocalID(SpriteID sprite)
/**
* Count the sprites which originate from a specific file in a range of SpriteIDs.
* @param file The loaded SpriteFile.
* @param filename The loaded SpriteFile.
* @param begin First sprite in range.
* @param end First sprite not in range.
* @return Number of sprites.
@@ -553,7 +554,7 @@ size_t GetGRFSpriteOffset(uint32_t id)
/**
* Parse the sprite section of GRFs.
* @param container_version Container version of the GRF we're currently processing.
* @param file The file to read the sprite offsets for.
*/
void ReadGRFSpriteOffsets(SpriteFile &file)
{
@@ -801,6 +802,7 @@ void *UniquePtrSpriteAllocator::AllocatePtr(size_t size)
* @param sprite ID of loaded sprite
* @param requested requested sprite type
* @param sc the currently known sprite cache for the requested sprite
* @param allocator Callback that provides the memory when loading sprites.
* @return fallback sprite
* @note this function will do UserError() in the case the fallback sprite isn't available
*/