mirror of https://github.com/AxioDL/metaforce.git
CScriptAiJumpPoint: Fix GetInUse
This commit is contained in:
parent
abfd5a464f
commit
1578a9481b
|
@ -45,7 +45,7 @@ void CScriptAiJumpPoint::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId oth
|
|||
std::optional<zeus::CAABox> CScriptAiJumpPoint::GetTouchBounds() const { return xec_touchBounds; }
|
||||
|
||||
bool CScriptAiJumpPoint::GetInUse(TUniqueId uid) const {
|
||||
return x108_24 || x110_timeRemaining > 0.f || x10a_occupant != kInvalidUniqueId || uid != kInvalidUniqueId ||
|
||||
uid != x10a_occupant;
|
||||
return x108_24_inUse || x110_timeRemaining > 0.f ||
|
||||
(x10a_occupant != kInvalidUniqueId && uid != kInvalidUniqueId && x10a_occupant != uid);
|
||||
}
|
||||
} // namespace urde
|
||||
|
|
|
@ -12,7 +12,7 @@ class CScriptAiJumpPoint : public CActor {
|
|||
private:
|
||||
float xe8_apex;
|
||||
zeus::CAABox xec_touchBounds;
|
||||
bool x108_24 : 1 = false;
|
||||
bool x108_24_inUse : 1 = false;
|
||||
TUniqueId x10a_occupant = kInvalidUniqueId;
|
||||
TUniqueId x10c_currentWaypoint = kInvalidUniqueId;
|
||||
TUniqueId x10e_nextWaypoint = kInvalidUniqueId;
|
||||
|
|
Loading…
Reference in New Issue