mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 00:27:42 +00:00
Implement remaining CStateManager stubs
This commit is contained in:
@@ -26,10 +26,10 @@ void CScriptCameraShaker::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId ob
|
||||
if (GetActive() && aid != kInvalidAreaId)
|
||||
{
|
||||
const CGameArea* area = stateMgr.GetWorld()->GetAreaAlways(aid);
|
||||
CGameArea::EOcclusionState occState = CGameArea::EOcclusionState::NotOccluded;
|
||||
CGameArea::EOcclusionState occState = CGameArea::EOcclusionState::Occluded;
|
||||
if (area->IsPostConstructed())
|
||||
occState = area->GetPostConstructed()->x10dc_occlusionState;
|
||||
if (occState == CGameArea::EOcclusionState::Occluded)
|
||||
if (occState == CGameArea::EOcclusionState::Visible)
|
||||
x34_shakeData.SetShakerId(stateMgr.GetCameraManager()->AddCameraShaker(x34_shakeData, false));
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user