Skip to content

Annotate always-true/false condition bugs with //! @bug - #771

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

Annotate always-true/false condition bugs with //! @bug#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 six vanilla conditions that always evaluate the same way, using the existing //! @bug convention:

  • func_802B4104 (blue/red shells): both landing checks OR two comparisons that were likely meant to be an && band, so one is always true and the other collapses to a single test
  • Triple shell firing (actors_extended.c): all three rotation-arc gates are always true, so a shell fires on the first Z press regardless of where it is in the arc
  • Lamp glow ranges (render_player.c): one range has inverted bounds and never matches, so that stretch of lamps never lights the player on Bowser's Castle / Banshee Boardwalk

Found while clearing compiler warnings in the SpaghettiKart port (HarbourMasters/SpaghettiKart#691) with (HarbourMasters/SpaghettiKart#725). Comment-only change: the preprocessed output is byte-identical, so matching is unaffected.

🤖 Generated with Claude Code

Comment-only: preprocessed output is byte-identical, so the build
still matches.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.

1 participant