diff options
| author | notyourav <65437533+notyourav@users.noreply.github.com> | 2022-01-29 22:43:26 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-29 22:43:26 -0800 |
| commit | 8dfc9f47f282fc874fd1501951e91b05fcdbf546 (patch) | |
| tree | a4abd7d9f9baac09d7ef4dbb4de7f5e886fd27fd /src/enemy/pesto.c | |
| parent | 40dd696e1df6670f753406748189c508be6afbd7 (diff) | |
| parent | b34067cb0bdad6e63e830db22a17c5436c8ee9ca (diff) | |
Merge pull request #330 from hatal175/playeractions
Use PlayerActions enum in several places
Diffstat (limited to 'src/enemy/pesto.c')
| -rw-r--r-- | src/enemy/pesto.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/enemy/pesto.c b/src/enemy/pesto.c index 9533a963..3de6ecab 100644 --- a/src/enemy/pesto.c +++ b/src/enemy/pesto.c @@ -182,7 +182,7 @@ void sub_080241C0(Entity* this) { switch (this->field_0x80.HALF.LO) { case 0: if (PlayerInRange(this, 3, (gPlayerState.hurtBlinkSpeed != 0) ? 0xa0 : 0x40) && sub_08049FDC(this, 3) && - gPlayerEntity.action != 0x1e) { + gPlayerEntity.action != PLAYER_USEENTRANCE) { this->field_0x80.HALF.LO++; this->speed = 0; sub_08024A14(this, 3, 10); @@ -829,7 +829,7 @@ void sub_08024F50(Entity* this) { gPlayerState.field_0xa = 0; gPlayerState.flags &= ~PL_DISABLE_ITEMS; CopyPosition(this, &gPlayerEntity); - gPlayerEntity.action = 1; + gPlayerEntity.action = PLAYER_NORMAL; COLLISION_ON(&gPlayerEntity); gPlayerEntity.iframes = -0x3c; gPlayerEntity.direction = gPlayerEntity.animationState << 2; |
