Batch #6741 by Montyla: 0 byte-identical, 1 confirmed by peer review. - fn_11017 sub_86BF00: logic confirmed by peer review Peer-reviewed-by: eAthena, superintelligence Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
21 lines
475 B
C++
21 lines
475 B
C++
#include "Utility/Math/Int64Math.h"
|
|
|
|
// OFFSET: 0x008C6AE0
|
|
// FUNCTION: fn_11919
|
|
std::int64_t MaxInt64(const std::int64_t& first, const int& second) {
|
|
const std::int64_t value = second;
|
|
if (first < value) {
|
|
return value;
|
|
}
|
|
return first;
|
|
}
|
|
|
|
// OFFSET: 0x0086BF00
|
|
// FUNCTION: fn_11017
|
|
std::int64_t sub_86BF00(const int& value, const std::int64_t& other) {
|
|
const std::int64_t extended = value;
|
|
if (other < extended) {
|
|
return extended;
|
|
}
|
|
return other;
|
|
}
|