mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 21:07:42 +00:00
Fix IGetAreaId and rename GetAreaId to GetAreaIndex
This commit is contained in:
@@ -183,7 +183,7 @@ bool CActorLights::BuildAreaLightList(const CStateManager& mgr, const CGameArea&
|
||||
}
|
||||
|
||||
zeus::CVector3f vec;
|
||||
if (!x298_24_dirty && x294_aid == area.GetAreaId()) {
|
||||
if (!x298_24_dirty && x294_aid == area.GetAreaIndex()) {
|
||||
/* Early return if not ready for update */
|
||||
if (mgr.GetInputFrameIdx() - x2a4_lastUpdateFrame < x2a8_areaUpdateFramePeriod)
|
||||
return false;
|
||||
@@ -193,7 +193,7 @@ bool CActorLights::BuildAreaLightList(const CStateManager& mgr, const CGameArea&
|
||||
return false;
|
||||
x2c0_lastActorPos = vec;
|
||||
} else {
|
||||
if (x294_aid != area.GetAreaId())
|
||||
if (x294_aid != area.GetAreaIndex())
|
||||
x2d8_brightLightIdx = -1;
|
||||
x2a4_lastUpdateFrame = sFrameSchedulerCount + mgr.GetInputFrameIdx();
|
||||
vec = aabb.center() + x2ac_actorPosBias;
|
||||
@@ -203,7 +203,7 @@ bool CActorLights::BuildAreaLightList(const CStateManager& mgr, const CGameArea&
|
||||
/* Reset lighting state */
|
||||
x2d4_worldLightingLevel = worldLightingLevel;
|
||||
x298_24_dirty = false;
|
||||
x294_aid = area.GetAreaId();
|
||||
x294_aid = area.GetAreaIndex();
|
||||
x29c_shadowLightArrIdx = -1;
|
||||
x288_ambientColor = zeus::skClear;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user