summaryrefslogtreecommitdiff
path: root/src/playerUtils.c
diff options
context:
space:
mode:
authorReinmmar <herwig.orlich@gmail.com>2023-09-17 21:13:44 +0200
committerReinmmar <herwig.orlich@gmail.com>2023-09-17 21:13:44 +0200
commit4c37e6cf5e8ee468b047aff9dafb6f1afe8b5bad (patch)
treea9deabad7b9fc4de1c6c221494e1c58ff26911bd /src/playerUtils.c
parentab3e4ef0f4d0e7c081ccc00b283df15324629489 (diff)
added bow_state :)
Diffstat (limited to 'src/playerUtils.c')
-rw-r--r--src/playerUtils.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/playerUtils.c b/src/playerUtils.c
index 2ea00c46..f88af901 100644
--- a/src/playerUtils.c
+++ b/src/playerUtils.c
@@ -378,7 +378,7 @@ void ResetActiveItems() {
gPlayerState.moleMittsState = 0;
gPlayerState.field_0x1c = 0;
- gPlayerState.field_0x1f[2] = 0;
+ gPlayerState.bow_state = 0;
gPlayerState.grab_status = 0;
gPlayerState.itemAnimPriority = 0;
gPlayerState.dash_state = 0;
@@ -1363,7 +1363,7 @@ void ClearPlayerState(void) {
gPlayerState.dash_state = 0;
gPlayerState.field_0x1f[0] = 0;
gPlayerState.field_0x1f[1] = 0;
- gPlayerState.field_0x1f[2] = 0;
+ gPlayerState.bow_state = 0;
gPlayerState.tilePosition = 0;
gPlayerState.tileType = 0;
gPlayerState.swim_state = 0;
@@ -1868,7 +1868,7 @@ void sub_080797EC(void) {
animation = ANIM_CARRY_NOCAP;
} else if (gPlayerState.shield_status != 0) {
animation = ANIM_SHIELD_NOCAP;
- } else if (gPlayerState.field_0x1f[2] == 0) {
+ } else if (gPlayerState.bow_state == 0) {
if (gPlayerState.swim_state != 0) {
animation = ANIM_SWIM;
} else {
@@ -1905,7 +1905,7 @@ void sub_080797EC(void) {
animation = ANIM_MINECART;
} else if (gPlayerState.shield_status != 0) {
animation = ANIM_SHIELD;
- } else if (gPlayerState.field_0x1f[2] != 0) {
+ } else if (gPlayerState.bow_state != 0) {
animation = ANIM_BOW;
} else {
if (gPlayerState.swim_state != 0) {
@@ -1958,7 +1958,7 @@ void ResolvePlayerAnimation(void) {
anim = ANIM_JUMP;
} else if (gPlayerState.shield_status != 0) {
anim = ANIM_SHIELD_END_NOCAP;
- } else if (gPlayerState.field_0x1f[2] != 0) {
+ } else if (gPlayerState.bow_state != 0) {
anim = ANIM_BOW_END;
} else if (gPlayerState.swim_state != 0) {
anim = ANIM_SWIM_END;
@@ -2007,7 +2007,7 @@ void ResolvePlayerAnimation(void) {
anim = ANIM_MINECART_END;
} else if (gPlayerState.shield_status != 0) {
anim = ANIM_SHIELD_END;
- } else if (gPlayerState.field_0x1f[2] != 0) {
+ } else if (gPlayerState.bow_state != 0) {
anim = ANIM_BOW_END;
} else if (gPlayerState.swim_state != 0) {
anim = ANIM_SWIM_END;