mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-11 03:07:44 +00:00
CActorContraption fixes, better CMake dependency handling
This commit is contained in:
@@ -1082,7 +1082,7 @@ void CMorphBall::UpdateEffects(float dt, CStateManager& mgr) {
|
||||
if (x1c10_ballInnerGlowLight != kInvalidUniqueId) {
|
||||
if (TCastToPtr<CGameLight> light = mgr.ObjectById(x1c10_ballInnerGlowLight)) {
|
||||
light->SetTranslation(swooshToWorld.origin + zeus::CVector3f(0.f, 0.f, GetBallRadius()));
|
||||
rstl::optional<CLight> lObj;
|
||||
std::optional<CLight> lObj;
|
||||
if (IsMorphBallTransitionFlashValid() && x19dc_morphBallTransitionFlashGen->SystemHasLight())
|
||||
lObj.emplace(x19dc_morphBallTransitionFlashGen->GetLight());
|
||||
else if (x19d0_ballInnerGlowGen->SystemHasLight())
|
||||
|
||||
Reference in New Issue
Block a user