mirror of https://github.com/AxioDL/metaforce.git
CPowerBomb: Return std::nullopt in GetTouchBounds()
Avoids unnecessary zeroing of the internal buffer of std::optional in some implementations (libstdc++ and libc++).
This commit is contained in:
parent
cda5a48970
commit
6365f2ee1c
|
@ -29,7 +29,7 @@ public:
|
||||||
void Think(float, CStateManager&) override;
|
void Think(float, CStateManager&) override;
|
||||||
void AddToRenderer(const zeus::CFrustum&, const CStateManager&) const override;
|
void AddToRenderer(const zeus::CFrustum&, const CStateManager&) const override;
|
||||||
void Render(const CStateManager&) const override {}
|
void Render(const CStateManager&) const override {}
|
||||||
std::optional<zeus::CAABox> GetTouchBounds() const override { return {}; }
|
std::optional<zeus::CAABox> GetTouchBounds() const override { return std::nullopt; }
|
||||||
void Touch(CActor&, CStateManager&) override { /*x158_24_canStartFilter; */
|
void Touch(CActor&, CStateManager&) override { /*x158_24_canStartFilter; */
|
||||||
}
|
}
|
||||||
float GetCurTime() const { return x15c_curTime; }
|
float GetCurTime() const { return x15c_curTime; }
|
||||||
|
|
Loading…
Reference in New Issue