mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-15 11:03:00 +01:00
Fix sorting and missed floor() usage
This commit is contained in:
committed by
Michał Janiszewski
parent
d4cfad8ab2
commit
f1ab13f56e
@@ -615,7 +615,7 @@ sint32 cmdline_for_sprite(const char **argv, sint32 argc)
|
||||
}
|
||||
|
||||
sint32 maxIndex = (sint32)spriteFileHeader.num_entries;
|
||||
sint32 numbers = (sint32)floor(std::log(maxIndex));
|
||||
sint32 numbers = (sint32)std::floor(std::log(maxIndex));
|
||||
size_t pathLen = strlen(outputPath);
|
||||
|
||||
if (pathLen >= (size_t)(MAX_PATH - numbers - 5)) {
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
#pragma endregion
|
||||
|
||||
#include <algorithm>
|
||||
#include <cstdio>
|
||||
#include <cstdarg>
|
||||
#include <cstdio>
|
||||
#include <cstring>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
Reference in New Issue
Block a user