forked from rosebudai/OpenRCT2-Web
Fix sorting and missed floor() usage
This commit is contained in:
1 parent
d4cfad8ab2
commit
f1ab13f56e
2 files changed
+2
-2
No files matched your search
@@ -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