diff options
| author | engineer124 <47598039+engineer124@users.noreply.github.com> | 2023-06-02 14:39:39 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-02 14:39:39 +1000 |
| commit | 4b25b4d8e655c5280fd42e5c99f3971ae9b5326b (patch) | |
| tree | 166fa44044ca69bc57e2f64ccb899365ec81df28 /src/code/z_snap.c | |
| parent | 0261dc0a5c99ab87fed760c0cb81d1f7c4f9dc3b (diff) | |
Misc Cleanup 2 (#1260)
* more misc cleanup
* PR suggestions
* more abs alt, csId
* more cleanup, can't help it
* fix incorrect sq
* more fixes
Diffstat (limited to 'src/code/z_snap.c')
| -rw-r--r-- | src/code/z_snap.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/src/code/z_snap.c b/src/code/z_snap.c index 9361cc1e0..3524fe3ab 100644 --- a/src/code/z_snap.c +++ b/src/code/z_snap.c @@ -42,9 +42,6 @@ s32 Snap_RecordPictographedActors(PlayState* play) { break; } - //! FAKE: - if (1) {} - // Actors which may be pictographed anywhere switch (actor->id) { case ACTOR_EN_KAKASI: @@ -71,15 +68,20 @@ s32 Snap_RecordPictographedActors(PlayState* play) { case ACTOR_EN_GE2: seen |= PICTO_SEEN_ANYWHERE; break; + + default: + break; + } + + if (!seen) { + continue; } // If actor is recordable, run its validity function and record if valid - if (seen) { - pictoActor = (PictoActor*)actor; - if (pictoActor->validationFunc != NULL) { - if ((pictoActor->validationFunc)(play, actor) == 0) { - validCount++; - } + pictoActor = (PictoActor*)actor; + if (pictoActor->validationFunc != NULL) { + if (pictoActor->validationFunc(play, actor) == 0) { + validCount++; } } } |
