Skip to content

Document versus rankings and finish info - #766

Merged
MegaMech merged 3 commits into
n64decomp:masterfrom
JedGrabman:places
Jul 18, 2026
Merged

Document versus rankings and finish info#766
MegaMech merged 3 commits into
n64decomp:masterfrom
JedGrabman:places

Conversation

@JedGrabman

Copy link
Copy Markdown
Contributor

Documenting variables and behavior related to rankings and finishing.

This was related to an investigation into port priority for versus mode, so added some comments about how that works since it is not immediately obvious by looking at the code. Roughly, player movement gets processed in player order, so if two players finish on the same frame in versus, the player with the lower port number will be processed first and get the better placement.

Comment thread src/racing/race_logic.c Outdated
Comment thread src/racing/race_logic.c Outdated
Comment thread src/racing/race_logic.c
Comment thread src/racing/race_logic.c Outdated
case 7:
switch (gRaceState) {
case RACE_CURRENT:
case RACE_HAS_HUMAN_FINISHER:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

finisher or finished?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Denotes at least 1 human has finished.

Changed it to RACE_HUMAN_FINISHED. I think HAS made it sound more like a boolean than intended.

@MegaMech MegaMech Jul 14, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't mind the has, up to you on this one. I just thought the finisher was a mispelling and that the intention may have been finished

RACE_HAS_A_PLAYER_FINISHED is another alternate option...

But this is also state so maybe:
RACE_A_PLAYER_FINISHED

I'm kinda up for any of the above on this one.

Comment thread src/racing/race_logic.c
@MegaMech
MegaMech merged commit 44c71a7 into n64decomp:master Jul 18, 2026
0 of 3 checks passed
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