From aacea315f23c0e11c97ea904ec76c79320cbeffa Mon Sep 17 00:00:00 2001 From: Ammon Smith Date: Sat, 12 Feb 2022 17:57:34 -0500 Subject: [PATCH] Add exception for handling of "Crossroads" in wiki links. --- util.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/util.cpp b/util.cpp index 1c75f6b5..57d03020 100644 --- a/util.cpp +++ b/util.cpp @@ -732,6 +732,11 @@ EX void open_url(string s) { const char *urlhex = "0123456789ABCDEF"; EX void open_wiki(const char *title) { + // Since "Crossroads" is ambiguous, we use the direct link to Crossroads I. + if (!strcmp(title, "Crossroads")) { + title = "Crossroads (Land)"; + } + string url = "https://hyperrogue.miraheze.org/wiki/"; unsigned char c; for (size_t i = 0; (c = title[i]); ++i) {