2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 17:07:41 +00:00

MemoryCard PutTo implementations

This commit is contained in:
Jack Andersen
2016-10-09 11:41:23 -10:00
parent 545fccc4cc
commit a85ea968c3
10 changed files with 194 additions and 17 deletions

View File

@@ -4,6 +4,7 @@
#include "CSimplePool.hpp"
#include "CStateManager.hpp"
#include "World/CScriptAreaAttributes.hpp"
#include "CGameState.hpp"
namespace urde
{
@@ -841,7 +842,7 @@ void CGameArea::VerifyTokenList(CStateManager& stateMgr)
int lidx = 0;
for (u32 off : xbc_layerDepOffsets)
{
if (stateMgr.IsLayerActive(x4_selfIdx, lidx))
if (stateMgr.LayerState()->IsLayerActive(x4_selfIdx, lidx))
{
auto it = xac_deps2.begin() + lastOff;
auto end = xac_deps2.begin() + off;