Skip to content
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

Adding the correct floor ordinal in the welcome message #621

Merged
merged 1 commit into from
Nov 26, 2023

Conversation

flend
Copy link
Collaborator

@flend flend commented Nov 14, 2023

The welcome message previously assumed the Amulet of Yendor was on a -th floor. But, for example, in bullet brogue, it's on the 3-rd floor. This change supports all floor numbers.

@@ -130,14 +130,34 @@ static void benchmark() {
printf("\n\nBenchmark took a total of %lu seconds.", ((unsigned long) time(NULL)) - initialTime);
}

static const char *getOrdinalSuffix(int number) {
Copy link
Owner

Choose a reason for hiding this comment

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

I thought returning char * was wrong but string literals have static duration so this is legit!

@tmewett tmewett merged commit 8567eab into tmewett:release Nov 26, 2023
1 check 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