Skip to content

Annotate the always-true condition in func_802B4104 - #771

Open
quarrel07 wants to merge 1 commit into
n64decomp:masterfrom
quarrel07:bug-annotations
Open

Annotate the always-true condition in func_802B4104#771
quarrel07 wants to merge 1 commit into
n64decomp:masterfrom
quarrel07:bug-annotations

Conversation

@quarrel07

@quarrel07 quarrel07 commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Documents one vanilla condition in func_802B4104 (blue/red shells) that never does what it looks like it does. Both branches use || where an && band around zero was likely intended, so the first branch's second test is true for every value and the second branch's is redundant.

Rebased down from the original three sites: the triple shell arcs and the Banshee Boardwalk lamp range are already covered on master by #778 and #779.

Comment-only change, so the preprocessed output is byte-identical and matching is unaffected.

@MegaMech

MegaMech commented Aug 2, 2026

Copy link
Copy Markdown
Collaborator

oops, I didn't see this PR. But I pushed comments for the bugs except the first one iirc.

@quarrel07 quarrel07 changed the title Annotate always-true/false condition bugs with //! @bug Annotate the always-true condition in func_802B4104 Aug 2, 2026
@quarrel07

Copy link
Copy Markdown
Contributor Author

No problem. I rebased this down to just the first one, the other two are covered 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants