From b4f8429a2c951dbf6b92edd865f6a63c166301cb Mon Sep 17 00:00:00 2001 From: Tal Hayon Date: Sat, 29 Jan 2022 16:21:57 +0200 Subject: Use PlayerFlags where possible --- src/item/itemSword.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/item') 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; -- cgit v1.2.3