summaryrefslogtreecommitdiff
path: root/src/code/z_snap.c
diff options
context:
space:
mode:
authorengineer124 <47598039+engineer124@users.noreply.github.com>2021-05-21 11:24:47 +1000
committerGitHub <noreply@github.com>2021-05-20 21:24:47 -0400
commitf4687fbbe76b4699e7cfd8315fb83cd00b666e3a (patch)
tree63a8f3bfd7fbfd924a0db8c98693e0d9a42dd6b4 /src/code/z_snap.c
parent8c62c102cfb2506845635922a886b60bf8402b53 (diff)
General Cleanup (#155)
* minor fixes * Consolidate into globalCtx * fix error * Fix Warnings Co-authored-by: engineer124 <engineer124enginer124@gmail.com>
Diffstat (limited to 'src/code/z_snap.c')
-rw-r--r--src/code/z_snap.c14
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;