mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-23 15:31:15 +00:00
PLAYER_STATE1_DEAD
(#2204)
* PLAYER_STATE1_DEAD * change comment * format
This commit is contained in:
parent
3287437069
commit
cc0b1bb127
13 changed files with 36 additions and 35 deletions
|
@ -355,7 +355,7 @@ void EnRd_WalkToPlayer(EnRd* this, PlayState* play) {
|
|||
}
|
||||
|
||||
if ((ABS(yaw) < 0x1554) && (Actor_WorldDistXYZToActor(&this->actor, &player->actor) <= 150.0f)) {
|
||||
if (!(player->stateFlags1 & (PLAYER_STATE1_7 | PLAYER_STATE1_13 | PLAYER_STATE1_14 | PLAYER_STATE1_18 |
|
||||
if (!(player->stateFlags1 & (PLAYER_STATE1_DEAD | PLAYER_STATE1_13 | PLAYER_STATE1_14 | PLAYER_STATE1_18 |
|
||||
PLAYER_STATE1_19 | PLAYER_STATE1_21)) &&
|
||||
!(player->stateFlags2 & PLAYER_STATE2_7)) {
|
||||
if (this->playerStunWaitTimer == 0) {
|
||||
|
@ -430,7 +430,7 @@ void EnRd_WalkToHome(EnRd* this, PlayState* play) {
|
|||
this->actor.world.rot.y = this->actor.shape.rot.y;
|
||||
SkelAnime_Update(&this->skelAnime);
|
||||
|
||||
if (!(player->stateFlags1 & (PLAYER_STATE1_7 | PLAYER_STATE1_13 | PLAYER_STATE1_14 | PLAYER_STATE1_18 |
|
||||
if (!(player->stateFlags1 & (PLAYER_STATE1_DEAD | PLAYER_STATE1_13 | PLAYER_STATE1_14 | PLAYER_STATE1_18 |
|
||||
PLAYER_STATE1_19 | PLAYER_STATE1_21)) &&
|
||||
!(player->stateFlags2 & PLAYER_STATE2_7) &&
|
||||
(Actor_WorldDistXYZToPoint(&player->actor, &this->actor.home.pos) < 150.0f)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue