mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-23 07:21:19 +00:00
Use defines for actor flags (#873)
* Add ACTOR_FLAG_ defines * Add ACTOR_FLAGS_ALL macro and use ACTOR_FLAG_* constants everywhere * Remove unused ACTOR_FLAG_* constants * actor flags in bigokuta & ko * actor flags in obj_mure * actor flags in stalfos, twinrova & ganon2 * actor flags in morpha & barinade * name some previously missed actor flags * found some comments using hex for actor flags * Actor flags in ovl_En_Ganon_Mant * Actor flags in EnWf * Flags in en_zf * Actor flags in BossGanon (FeelsOKMan) * Remove `ACTOR_FLAG_NONE` * Wrap expansion of `FLAGS` in parentheses * `ACTOR_FLAGS_ALL` -> `CHECK_FLAG_ALL` * Move `CHECK_FLAG_ALL` to `macros.h` * Run formatter
This commit is contained in:
parent
79220ba58a
commit
a9284494f2
439 changed files with 1342 additions and 1304 deletions
|
@ -7,7 +7,7 @@
|
|||
#include "z_en_ge3.h"
|
||||
#include "objects/object_geldb/object_geldb.h"
|
||||
|
||||
#define FLAGS 0x00000019
|
||||
#define FLAGS (ACTOR_FLAG_0 | ACTOR_FLAG_3 | ACTOR_FLAG_4)
|
||||
|
||||
void EnGe3_Init(Actor* thisx, GlobalContext* globalCtx);
|
||||
void EnGe3_Destroy(Actor* thisx, GlobalContext* globalCtx);
|
||||
|
@ -127,7 +127,7 @@ void EnGe3_Wait(EnGe3* this, GlobalContext* globalCtx) {
|
|||
if (Actor_TextboxIsClosing(&this->actor, globalCtx)) {
|
||||
this->actionFunc = EnGe3_WaitLookAtPlayer;
|
||||
this->actor.update = EnGe3_UpdateWhenNotTalking;
|
||||
this->actor.flags &= ~0x10000;
|
||||
this->actor.flags &= ~ACTOR_FLAG_16;
|
||||
}
|
||||
EnGe3_TurnToFacePlayer(this, globalCtx);
|
||||
}
|
||||
|
@ -148,7 +148,7 @@ void EnGe3_WaitTillCardGiven(EnGe3* this, GlobalContext* globalCtx) {
|
|||
void EnGe3_GiveCard(EnGe3* this, GlobalContext* globalCtx) {
|
||||
if ((Message_GetState(&globalCtx->msgCtx) == TEXT_STATE_EVENT) && Message_ShouldAdvance(globalCtx)) {
|
||||
Message_CloseTextbox(globalCtx);
|
||||
this->actor.flags &= ~0x10000;
|
||||
this->actor.flags &= ~ACTOR_FLAG_16;
|
||||
this->actionFunc = EnGe3_WaitTillCardGiven;
|
||||
func_8002F434(&this->actor, globalCtx, GI_GERUDO_CARD, 10000.0f, 50.0f);
|
||||
}
|
||||
|
@ -163,7 +163,7 @@ void EnGe3_ForceTalk(EnGe3* this, GlobalContext* globalCtx) {
|
|||
this->unk_30C |= 4;
|
||||
}
|
||||
this->actor.textId = 0x6004;
|
||||
this->actor.flags |= 0x10000;
|
||||
this->actor.flags |= ACTOR_FLAG_16;
|
||||
func_8002F1C4(&this->actor, globalCtx, 300.0f, 300.0f, 0);
|
||||
}
|
||||
EnGe3_LookAtPlayer(this, globalCtx);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue