diff options
| author | Tal Hayon <talhayon1@gmail.com> | 2022-08-06 15:21:41 +0300 |
|---|---|---|
| committer | Tal Hayon <talhayon1@gmail.com> | 2022-08-06 15:21:41 +0300 |
| commit | 18ef0d34b4ce9801ae26449e3a32ac9d985e43de (patch) | |
| tree | 38faf63b8f005c8860746273cae12b101d7e8f57 /src/enemy/vaatiWrath.c | |
| parent | 64c2f2476d3090856bfa450f06b19b87709a8170 (diff) | |
Document various fields and functions
Diffstat (limited to 'src/enemy/vaatiWrath.c')
| -rw-r--r-- | src/enemy/vaatiWrath.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/enemy/vaatiWrath.c b/src/enemy/vaatiWrath.c index 3f91afd9..22df2068 100644 --- a/src/enemy/vaatiWrath.c +++ b/src/enemy/vaatiWrath.c @@ -1002,8 +1002,9 @@ void VaatiWrathType0PreAction(Entity* this) { gSave.timers[3]--; } else { temp = gPlayerState.framestate_last; - if (temp < 2) { - if (temp >= 0) { + switch (temp) { + case PL_STATE_IDLE: + case PL_STATE_WALK: if (gPlayerState.item == NULL) { if (gPlayerEntity.field_0x7a.HWORD == 0) { if ((gPlayerEntity.z.HALF.HI & 0x8000U) == 0 || (gPlayerState.field_0xa != 0)) { @@ -1012,7 +1013,7 @@ void VaatiWrathType0PreAction(Entity* this) { } } } - } + break; } } } |
