mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 17:04:55 +00:00
Work on CStateManager::InitializeState flow
This commit is contained in:
@@ -51,7 +51,7 @@ void CRelayTracker::SendMsgs(const TAreaId& areaId, CStateManager& stateMgr)
|
||||
for (u32 i=0 ; i<relayCount ; ++i)
|
||||
{
|
||||
const CWorld::CRelay& relay = world->GetRelay(i);
|
||||
if (((relay.GetTargetId() >> 16) & 0x3FF) != areaId)
|
||||
if (relay.GetTargetId().AreaNum() != areaId)
|
||||
continue;
|
||||
|
||||
if (!HasRelay(relay.GetRelayId()))
|
||||
@@ -69,7 +69,7 @@ void CRelayTracker::SendMsgs(const TAreaId& areaId, CStateManager& stateMgr)
|
||||
for (u32 i=0 ; i<relayCount ; ++i)
|
||||
{
|
||||
const CWorld::CRelay& relay = world->GetRelay(i);
|
||||
if (((relay.GetTargetId() >> 16) & 0x3FF) != areaId)
|
||||
if (relay.GetTargetId().AreaNum() != areaId)
|
||||
continue;
|
||||
|
||||
if (!HasRelay(relay.GetRelayId()) || !relay.GetActive())
|
||||
|
||||
Reference in New Issue
Block a user