1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-23 21:07:17 +00:00

Add exception for handling of "Crossroads" in wiki links.

This commit is contained in:
Ammon Smith 2022-02-12 17:57:34 -05:00
parent f366e4fbad
commit aacea315f2

View File

@ -732,6 +732,11 @@ EX void open_url(string s) {
const char *urlhex = "0123456789ABCDEF"; const char *urlhex = "0123456789ABCDEF";
EX void open_wiki(const char *title) { 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/"; string url = "https://hyperrogue.miraheze.org/wiki/";
unsigned char c; unsigned char c;
for (size_t i = 0; (c = title[i]); ++i) { for (size_t i = 0; (c = title[i]); ++i) {