diff options
Diffstat (limited to 'src/code/z_snap.c')
| -rw-r--r-- | src/code/z_snap.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/code/z_snap.c b/src/code/z_snap.c index 972f359f0..f2c1328ea 100644 --- a/src/code/z_snap.c +++ b/src/code/z_snap.c @@ -3,10 +3,10 @@ typedef struct { Actor actor; - s32 (*pictoFunc)(GlobalContext* ctxt, Actor* actor); + s32 (*pictoFunc)(GlobalContext* globalCtx, Actor* actor); } PictoActor; -s32 func_8013A240(GlobalContext* ctxt) { +s32 func_8013A240(GlobalContext* globalCtx) { PictoActor* pictoActor; Actor* actor; s32 type = 0; @@ -16,15 +16,15 @@ s32 func_8013A240(GlobalContext* ctxt) { gSaveContext.perm.pictoFlags0 = 0; gSaveContext.perm.pictoFlags1 = 0; - if (ctxt->sceneNum == SCENE_20SICHITAI) { + if (globalCtx->sceneNum == SCENE_20SICHITAI) { func_8013A41C(1); } for (; type < 12; type++) { - for (actor = ctxt->actorCtx.actorList[type].first; actor != NULL; actor = actor->next) { + for (actor = globalCtx->actorCtx.actorList[type].first; actor != NULL; actor = actor->next) { seen = 0; - switch (ctxt->sceneNum) { + switch (globalCtx->sceneNum) { case SCENE_20SICHITAI: if ((actor->id == ACTOR_EN_MNK) || (actor->id == ACTOR_EN_BIGOKUTA)) { seen = 1; @@ -64,7 +64,7 @@ s32 func_8013A240(GlobalContext* ctxt) { if (seen != 0) { pictoActor = (PictoActor*)actor; if (pictoActor->pictoFunc != NULL) { - if ((pictoActor->pictoFunc)(ctxt, actor) == 0) { + if ((pictoActor->pictoFunc)(globalCtx, actor) == 0) { count++; } } @@ -148,7 +148,7 @@ s32 func_8013A530(GlobalContext* globalCtx, Actor* actor, s32 flag, Vec3f* pos, } actors[0] = actor; - actors[1] = globalCtx->actorCtx.actorList[2].first; // TODO PLAYER macro + actors[1] = &PLAYER->base; if (CollisionCheck_LineOCCheck(globalCtx, &globalCtx->colCheckCtx, pos, &camera->eye, actors, 2) != 0) { func_8013A41C(0x3b); ret |= 0x3b; |
