mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-27 14:37:16 +00:00
Add exception for handling of "Crossroads" in wiki links.
This commit is contained in:
parent
f366e4fbad
commit
aacea315f2
5
util.cpp
5
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user