mirror of https://github.com/AxioDL/metaforce.git
CMapWorldInfo: Rename IsAreaVisted -> IsAreaVisted
Same thing, but without the typo.
This commit is contained in:
parent
ddcbf51260
commit
7c1e468d31
|
@ -1249,7 +1249,7 @@ void CAutoMapper::Update(float dt, const CStateManager& mgr) {
|
|||
} else if (x24_world) {
|
||||
const IGameArea* area = x24_world->IGetAreaAlways(xa0_curAreaId);
|
||||
const CMapWorldInfo& mwInfo = *g_GameState->StateForWorld(x24_world->IGetWorldAssetId()).MapWorldInfo();
|
||||
if (mwInfo.IsMapped(xa0_curAreaId) || mwInfo.IsAreaVisted(xa0_curAreaId))
|
||||
if (mwInfo.IsMapped(xa0_curAreaId) || mwInfo.IsAreaVisited(xa0_curAreaId))
|
||||
stringId = area->IGetStringTableAssetId();
|
||||
else
|
||||
stringId = {};
|
||||
|
|
|
@ -244,7 +244,7 @@ void CMapWorld::DrawAreas(const CMapWorld::CMapWorldDrawParms& parms, int selAre
|
|||
const zeus::CColor* outlineColor;
|
||||
const zeus::CColor* surfacePlayerColor;
|
||||
const zeus::CColor* outlinePlayerColor;
|
||||
if (mwInfo.IsAreaVisted(thisArea)) {
|
||||
if (mwInfo.IsAreaVisited(thisArea)) {
|
||||
alphaSurf = parms.GetAlphaSurfaceVisited();
|
||||
alphaOutline = parms.GetAlphaOutlineVisited();
|
||||
surfaceColor = &g_tweakAutoMapper->GetSurfaceVisitedColor();
|
||||
|
|
|
@ -31,7 +31,7 @@ void CMapWorldInfo::PutTo(CBitStreamWriter& writer, const CSaveWorld& savw, CAss
|
|||
|
||||
for (u32 i = 0; i < worldMem.GetAreaCount(); ++i) {
|
||||
if (i < x0_visitedAreasAllocated)
|
||||
writer.WriteEncoded(IsAreaVisted(i), 1);
|
||||
writer.WriteEncoded(IsAreaVisited(i), 1);
|
||||
else
|
||||
writer.WriteEncoded(0, 1);
|
||||
}
|
||||
|
@ -53,7 +53,7 @@ void CMapWorldInfo::SetDoorVisited(TEditorId eid, bool visited) { x28_visitedDoo
|
|||
|
||||
bool CMapWorldInfo::IsDoorVisited(TEditorId eid) const { return x28_visitedDoors.find(eid) != x28_visitedDoors.end(); }
|
||||
|
||||
bool CMapWorldInfo::IsAreaVisted(TAreaId aid) const {
|
||||
bool CMapWorldInfo::IsAreaVisited(TAreaId aid) const {
|
||||
if (u32(aid) + 1 > x0_visitedAreasAllocated) {
|
||||
const_cast<CMapWorldInfo&>(*this).x4_visitedAreas.resize((aid + 32) / 32);
|
||||
const_cast<CMapWorldInfo&>(*this).x0_visitedAreasAllocated = aid + 1;
|
||||
|
@ -93,7 +93,7 @@ void CMapWorldInfo::SetIsMapped(TAreaId aid, bool mapped) {
|
|||
|
||||
bool CMapWorldInfo::IsWorldVisible(TAreaId aid) const { return x38_mapStationUsed || IsMapped(aid); }
|
||||
|
||||
bool CMapWorldInfo::IsAreaVisible(TAreaId aid) const { return IsAreaVisted(aid) || IsMapped(aid); }
|
||||
bool CMapWorldInfo::IsAreaVisible(TAreaId aid) const { return IsAreaVisited(aid) || IsMapped(aid); }
|
||||
|
||||
bool CMapWorldInfo::IsAnythingSet() const {
|
||||
for (u32 i = 0; i < x0_visitedAreasAllocated; ++i)
|
||||
|
|
|
@ -24,7 +24,7 @@ public:
|
|||
void SetIsMapped(TAreaId, bool);
|
||||
void SetDoorVisited(TEditorId eid, bool val);
|
||||
bool IsDoorVisited(TEditorId eid) const;
|
||||
bool IsAreaVisted(TAreaId) const;
|
||||
bool IsAreaVisited(TAreaId) const;
|
||||
void SetAreaVisited(TAreaId, bool);
|
||||
bool IsWorldVisible(TAreaId) const;
|
||||
bool IsAreaVisible(TAreaId) const;
|
||||
|
|
|
@ -2310,7 +2310,7 @@ void CStateManager::SetCurrentAreaId(TAreaId aid) {
|
|||
|
||||
if (aid == kInvalidAreaId)
|
||||
return;
|
||||
if (x8c0_mapWorldInfo->IsAreaVisted(aid))
|
||||
if (x8c0_mapWorldInfo->IsAreaVisited(aid))
|
||||
return;
|
||||
x8c0_mapWorldInfo->SetAreaVisited(aid, true);
|
||||
x850_world->GetMapWorld()->RecalculateWorldSphere(*x8c0_mapWorldInfo, *x850_world);
|
||||
|
|
Loading…
Reference in New Issue