mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-21 14:31:17 +00:00
Name actor flags 1: ACTOR_FLAG_REACT_TO_LENS
, ACTOR_FLAG_IGNORE_POINT_LIGHTS
(#1583)
* 7 -> `ACTOR_FLAG_REACT_TO_LENS` * move comment above actor flag * 22 -> `ACTOR_FLAG_IGNORE_POINT_LIGHTS` * newlines between flags --------- Co-authored-by: fig02 <fig02srl@gmail.com>
This commit is contained in:
parent
324db1d578
commit
4982f32384
22 changed files with 109 additions and 53 deletions
|
@ -160,7 +160,7 @@ void EnBox_Init(Actor* thisx, PlayState* play2) {
|
|||
this->dyna.actor.flags |= ACTOR_FLAG_4;
|
||||
} else {
|
||||
if (this->type == ENBOX_TYPE_4 || this->type == ENBOX_TYPE_6) {
|
||||
this->dyna.actor.flags |= ACTOR_FLAG_7;
|
||||
this->dyna.actor.flags |= ACTOR_FLAG_REACT_TO_LENS;
|
||||
}
|
||||
EnBox_SetupAction(this, EnBox_WaitOpen);
|
||||
this->movementFlags |= ENBOX_MOVE_IMMOBILE;
|
||||
|
@ -438,7 +438,7 @@ void EnBox_WaitOpen(EnBox* this, PlayState* play) {
|
|||
void EnBox_Open(EnBox* this, PlayState* play) {
|
||||
u16 sfxId;
|
||||
|
||||
this->dyna.actor.flags &= ~ACTOR_FLAG_7;
|
||||
this->dyna.actor.flags &= ~ACTOR_FLAG_REACT_TO_LENS;
|
||||
|
||||
if (SkelAnime_Update(&this->skelanime)) {
|
||||
if (this->unk_1F4 > 0) {
|
||||
|
@ -621,11 +621,11 @@ void EnBox_Draw(Actor* thisx, PlayState* play) {
|
|||
OPEN_DISPS(play->state.gfxCtx, "../z_en_box.c", 1581);
|
||||
|
||||
/*
|
||||
this->dyna.actor.flags & ACTOR_FLAG_7 is set by Init (if type is 4 or 6)
|
||||
this->dyna.actor.flags & ACTOR_FLAG_REACT_TO_LENS is set by Init (if type is 4 or 6)
|
||||
and cleared by Open
|
||||
*/
|
||||
if ((this->alpha == 255 && !(this->type == ENBOX_TYPE_4 || this->type == ENBOX_TYPE_6)) ||
|
||||
(!CHECK_FLAG_ALL(this->dyna.actor.flags, ACTOR_FLAG_7) &&
|
||||
(!CHECK_FLAG_ALL(this->dyna.actor.flags, ACTOR_FLAG_REACT_TO_LENS) &&
|
||||
(this->type == ENBOX_TYPE_4 || this->type == ENBOX_TYPE_6))) {
|
||||
gDPPipeSync(POLY_OPA_DISP++);
|
||||
gDPSetEnvColor(POLY_OPA_DISP++, 0, 0, 0, 255);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue