mirror of https://github.com/AxioDL/metaforce.git
CCharAnimTime & CPOINode: Fix operator<
This commit is contained in:
parent
bd882edee6
commit
87437881a0
|
@ -107,12 +107,12 @@ bool CCharAnimTime::operator<(const CCharAnimTime& other) const {
|
|||
|
||||
if (other.x4_type == EType::NonZero)
|
||||
return other.x0_time > 0.f;
|
||||
return other.x0_time < 0.f;
|
||||
} else {
|
||||
if (x4_type == EType::Infinity)
|
||||
return x0_time < 0.f && other.x0_time > 0.f;
|
||||
return x0_time < other.x0_time;
|
||||
return other.x0_time > 0.f; // ?
|
||||
}
|
||||
|
||||
if (other.x4_type == EType::Infinity)
|
||||
return x0_time < 0.f && other.x0_time > 0.f;
|
||||
return x0_time < 0.f;
|
||||
}
|
||||
|
||||
CCharAnimTime& CCharAnimTime::operator*=(const CCharAnimTime& other) {
|
||||
|
|
|
@ -31,9 +31,9 @@ CPOINode::CPOINode(CInputStream& in)
|
|||
, x30_charIdx(in.readInt32Big())
|
||||
, x34_flags(in.readInt32Big()) {}
|
||||
|
||||
bool CPOINode::operator>(const CPOINode& other) const { return x1c_time < other.x1c_time; }
|
||||
bool CPOINode::operator>(const CPOINode& other) const { return x1c_time > other.x1c_time; }
|
||||
|
||||
bool CPOINode::operator<(const CPOINode& other) const { return x1c_time > other.x1c_time; }
|
||||
bool CPOINode::operator<(const CPOINode& other) const { return x1c_time < other.x1c_time; }
|
||||
|
||||
template <class T>
|
||||
size_t _getPOIList(const CCharAnimTime& time, T* listOut, size_t capacity, size_t iterator, u32 unk1,
|
||||
|
|
Loading…
Reference in New Issue