CScriptAiJumpPoint: Fix GetInUse

This commit is contained in:
Luke Street 2020-04-29 03:03:14 -04:00
parent abfd5a464f
commit 1578a9481b
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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;