mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 22:27:43 +00:00
Rename CWorldLayerState to CScriptLayerManager (this is it's actual name)
This commit is contained in:
@@ -27,14 +27,14 @@ CIOWin::EMessageReturn CStateSetterFlow::OnMessage(const CArchitectureMessage& m
|
||||
|
||||
g_GameState->SetCurrentWorldId(worldId);
|
||||
CWorldState& ws = g_GameState->StateForWorld(worldId);
|
||||
CWorldLayerState& layers = *ws.GetLayerState();
|
||||
CScriptLayerManager& layers = *ws.GetLayerState();
|
||||
if (m->m_warpAreaId < layers.GetAreaCount()) {
|
||||
ws.SetAreaId(m->m_warpAreaId);
|
||||
if (m->m_warpLayerBits) {
|
||||
for (u32 i = 0; i < layers.GetAreaLayerCount(m->m_warpAreaId); ++i)
|
||||
layers.SetLayerActive(m->m_warpAreaId, i, ((m->m_warpLayerBits >> i) & 1) != 0);
|
||||
}
|
||||
CScriptMailbox& relays = *ws.RelayTracker();
|
||||
CScriptMailbox& relays = *ws.Mailbox();
|
||||
for (const auto& r : m->m_warpMemoryRelays)
|
||||
relays.AddMsg(r);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user