diff options
| author | Tal Hayon <talhayon1@gmail.com> | 2022-01-29 16:21:57 +0200 |
|---|---|---|
| committer | Tal Hayon <talhayon1@gmail.com> | 2022-01-30 00:32:10 +0200 |
| commit | b4f8429a2c951dbf6b92edd865f6a63c166301cb (patch) | |
| tree | 898ba9d60e688da0ba432f7d70e421c898ea34da /src/item | |
| parent | d34aa9166f5d9f7958e586ae1daee3224eb11fa5 (diff) | |
Use PlayerFlags where possible
Diffstat (limited to 'src/item')
| -rw-r--r-- | src/item/itemSword.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/item/itemSword.c b/src/item/itemSword.c index 3716f8f5..7a794159 100644 --- a/src/item/itemSword.c +++ b/src/item/itemSword.c @@ -21,7 +21,7 @@ void ItemSword(ItemBehavior* this, u32 arg1) { void sub_08075338(ItemBehavior* this, u32 arg1) { u32 temp, temp2; - if (gPlayerState.flags & 0x80) { + if (gPlayerState.flags & PL_MINISH) { this->field_0x5[4] |= 0x80; sub_08077D38(this, arg1); gPlayerState.animation = 0xc00; @@ -51,7 +51,7 @@ void sub_08075338(ItemBehavior* this, u32 arg1) { return; } - if (gPlayerState.flags & 0x40000) { + if (gPlayerState.flags & PL_ROLLING) { if ((gPlayerState.field_0xac & 2) == 0) { if (gPlayerState.item == NULL) return; @@ -71,7 +71,7 @@ void sub_08075338(ItemBehavior* this, u32 arg1) { this->field_0xf = 6; this->field_0x5[4] |= 0x80; gPlayerState.field_0xab = 2; - gPlayerState.flags |= 0x8000000; + gPlayerState.flags |= PL_SWORD_THRUST; sub_08077DF4(this, 0x130); SoundReq(SFX_PLY_VO3); return; |
