mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-23 07:21:19 +00:00
Name PLAYER_STATE1_ACTOR_CARRY
(#2173)
* actor carry flag * format and add comments * comment changes
This commit is contained in:
parent
c7ec814d78
commit
900c2f0f68
11 changed files with 67 additions and 65 deletions
|
@ -163,7 +163,7 @@ void EnBombf_GrowBomb(EnBombf* this, PlayState* play) {
|
|||
player->heldActor = NULL;
|
||||
player->interactRangeActor = NULL;
|
||||
this->actor.parent = NULL;
|
||||
player->stateFlags1 &= ~PLAYER_STATE1_11;
|
||||
player->stateFlags1 &= ~PLAYER_STATE1_ACTOR_CARRY;
|
||||
}
|
||||
} else if (this->bombCollider.base.acFlags & AC_HIT) {
|
||||
this->bombCollider.base.acFlags &= ~AC_HIT;
|
||||
|
@ -197,7 +197,7 @@ void EnBombf_GrowBomb(EnBombf* this, PlayState* play) {
|
|||
player->heldActor = NULL;
|
||||
player->interactRangeActor = NULL;
|
||||
this->actor.parent = NULL;
|
||||
player->stateFlags1 &= ~PLAYER_STATE1_11;
|
||||
player->stateFlags1 &= ~PLAYER_STATE1_ACTOR_CARRY;
|
||||
this->actor.world.pos = this->actor.home.pos;
|
||||
}
|
||||
}
|
||||
|
@ -215,7 +215,7 @@ void EnBombf_GrowBomb(EnBombf* this, PlayState* play) {
|
|||
player->heldActor = NULL;
|
||||
player->interactRangeActor = NULL;
|
||||
this->actor.parent = NULL;
|
||||
player->stateFlags1 &= ~PLAYER_STATE1_11;
|
||||
player->stateFlags1 &= ~PLAYER_STATE1_ACTOR_CARRY;
|
||||
this->actor.world.pos = this->actor.home.pos;
|
||||
}
|
||||
}
|
||||
|
@ -299,11 +299,11 @@ void EnBombf_Explode(EnBombf* this, PlayState* play) {
|
|||
if (this->timer == 0) {
|
||||
player = GET_PLAYER(play);
|
||||
|
||||
if ((player->stateFlags1 & PLAYER_STATE1_11) && (player->heldActor == &this->actor)) {
|
||||
if ((player->stateFlags1 & PLAYER_STATE1_ACTOR_CARRY) && (player->heldActor == &this->actor)) {
|
||||
player->actor.child = NULL;
|
||||
player->heldActor = NULL;
|
||||
player->interactRangeActor = NULL;
|
||||
player->stateFlags1 &= ~PLAYER_STATE1_11;
|
||||
player->stateFlags1 &= ~PLAYER_STATE1_ACTOR_CARRY;
|
||||
}
|
||||
|
||||
Actor_Kill(&this->actor);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue