-
Notifications
You must be signed in to change notification settings - Fork 443
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document Arrow Related Actor Flags #1737
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1 small comment to think about.
@@ -369,7 +369,7 @@ void EnFg_Update(Actor* thisx, PlayState* play) { | |||
flagSet = CHECK_FLAG_ALL(flag, ACTOR_FLAG_2000); | |||
if (1) {} | |||
if (!flagSet) { | |||
flagSet = CHECK_FLAG_ALL(flag, ACTOR_FLAG_8000); | |||
flagSet = CHECK_FLAG_ALL(flag, ACTOR_FLAG_ATTACHED_TO_ARROW); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if better/should be done in this PR, but you can remove the temps and if (1)
s by doing
if ((CHECK_FLAG_ALL(this->actor.flags, ACTOR_FLAG_2000) == 0) &&
(CHECK_FLAG_ALL(this->actor.flags, ACTOR_FLAG_8000) == 0)) {
this->actionFunc(this, play);
Actor_UpdateBgCheckInfo(play, &this->actor, sREG(0), sREG(1), 0.0f,
UPDBGCHECKINFO_FLAG_1 | UPDBGCHECKINFO_FLAG_4);
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice find!
See zeldaret/oot#2284