1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-08-21 14:31:17 +00:00

Name PLAYER_STATE1_ACTOR_CARRY (#2173)

* actor carry flag

* format and add comments

* comment changes
This commit is contained in:
fig02 2024-09-08 17:43:27 -04:00 committed by GitHub
parent c7ec814d78
commit 900c2f0f68
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 67 additions and 65 deletions

View file

@ -622,7 +622,7 @@ s32 EnTa_IsPlayerHoldingSuperCucco(EnTa* this, PlayState* play, s32 cuccoIdx) {
Player* player = GET_PLAYER(play);
Actor* interactRangeActor;
if (player->stateFlags1 & PLAYER_STATE1_11) {
if (player->stateFlags1 & PLAYER_STATE1_ACTOR_CARRY) {
interactRangeActor = player->interactRangeActor;
if (interactRangeActor != NULL && interactRangeActor->id == ACTOR_EN_NIW &&
interactRangeActor == &this->superCuccos[cuccoIdx]->actor) {
@ -658,7 +658,7 @@ void EnTa_TalkFoundSuperCucco(EnTa* this, PlayState* play) {
if (player->heldActor == &this->superCuccos[lastFoundSuperCuccoIdx]->actor) {
player->heldActor = NULL;
}
player->stateFlags1 &= ~PLAYER_STATE1_11;
player->stateFlags1 &= ~PLAYER_STATE1_ACTOR_CARRY;
this->superCuccos[lastFoundSuperCuccoIdx] = NULL;
}
this->stateFlags |= TALON_STATE_FLAG_TRACKING_PLAYER;