2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-11 13:07:42 +00:00

Attempt 4 to fix ScriptLayerController for Tom

This commit is contained in:
2020-10-21 15:55:45 -07:00
parent 528c96b2c0
commit b963ce1e85
9 changed files with 26 additions and 23 deletions

View File

@@ -16,7 +16,7 @@ void CMorphBallShadow::GatherAreas(const CStateManager& mgr) {
if (area.IsPostConstructed())
occState = area.GetPostConstructed()->x10dc_occlusionState;
if (occState == CGameArea::EOcclusionState::Visible)
x18_areas.push_back(area.GetAreaIndex());
x18_areas.push_back(area.GetAreaId());
}
}
@@ -105,7 +105,7 @@ bool CMorphBallShadow::AreasValid(const CStateManager& mgr) const {
continue;
if (it == x18_areas.end())
return false;
if (*it != area.GetAreaIndex())
if (*it != area.GetAreaId())
return false;
++it;
}