Use FrameState enum in a few places

This commit is contained in:
Tal Hayon
2022-01-29 15:46:55 +02:00
parent fd9049f598
commit 3c2b1d5522
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -124,7 +124,7 @@ void PullableLever_HandleSubAction0(PullableLeverEntity* this) {
super->field_0xf = 2;
}
if (player->animationState >> 1 == super->type2) {
if (gPlayerState.framestate == 0x1a) {
if (gPlayerState.framestate == PL_STATE_PULL) {
if (gPlayerState.heldObject & 2) {
if (gPlayerEntity.frame & 2) {
sub_0809153C(this);