mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 01:07:43 +00:00
Various CScriptSpecialFunction implementation, more debugOverlay CVars
This commit is contained in:
@@ -775,4 +775,23 @@ bool CWorld::AreSkyNeedsMet() const
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
TAreaId CWorld::GetAreaIdForSaveId(s32 saveId) const
|
||||
{
|
||||
if (saveId == -1)
|
||||
return kInvalidAreaId;
|
||||
|
||||
if (x18_areas.size() <= 0)
|
||||
return kInvalidAreaId;
|
||||
|
||||
TAreaId cur = 0;
|
||||
for (const auto& area : x18_areas)
|
||||
{
|
||||
if (area->x88_areaId == saveId)
|
||||
return cur;
|
||||
++cur;
|
||||
}
|
||||
|
||||
return kInvalidAreaId;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user