mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-20 05:23:04 +01:00
Remove the last usage of Math.hpp
This commit is contained in:
@@ -18,7 +18,6 @@
|
||||
#include "../core/File.h"
|
||||
#include "../core/FileIndex.hpp"
|
||||
#include "../core/FileStream.hpp"
|
||||
#include "../core/Math.hpp"
|
||||
#include "../core/Path.hpp"
|
||||
#include "../core/String.hpp"
|
||||
#include "../core/Util.hpp"
|
||||
@@ -48,7 +47,10 @@ static int32_t ScenarioCategoryCompare(int32_t categoryA, int32_t categoryB)
|
||||
return -1;
|
||||
if (categoryB == SCENARIO_CATEGORY_BUILD_YOUR_OWN)
|
||||
return 1;
|
||||
return Math::Sign(categoryA - categoryB);
|
||||
if (categoryA < categoryB)
|
||||
return -1;
|
||||
else
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int32_t scenario_index_entry_CompareByCategory(const scenario_index_entry& entryA, const scenario_index_entry& entryB)
|
||||
|
||||
Reference in New Issue
Block a user