mirror of https://github.com/AxioDL/metaforce.git
CAmbientAI: Return std::nullopt in GetTouchBounds()
Allows implementations to avoid zeroing out the internal buffer of the std::optional.
This commit is contained in:
parent
472e97aac0
commit
52f51c111a
|
@ -125,9 +125,10 @@ void CAmbientAI::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId uid, CState
|
|||
}
|
||||
|
||||
std::optional<zeus::CAABox> CAmbientAI::GetTouchBounds() const {
|
||||
if (GetActive())
|
||||
if (GetActive()) {
|
||||
return {GetBoundingBox()};
|
||||
return {};
|
||||
}
|
||||
return std::nullopt;
|
||||
}
|
||||
|
||||
void CAmbientAI::RandomizePlaybackRate(CStateManager& mgr) {
|
||||
|
|
Loading…
Reference in New Issue