1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-10 06:16:00 +00:00

fixes to make the Emscripten web version compile correctly

This commit is contained in:
Zeno Rogue
2017-08-13 20:49:38 +02:00
parent 6fb608bb2b
commit 7c82c3e5a3
10 changed files with 287 additions and 348 deletions

View File

@@ -52,9 +52,9 @@ struct fullnoun {
noun n[NUMLAN-1];
};
#ifdef NOTRANS
#define NUMEXTRA 3
const char* natchars[NUMEXTRA] = {"°","é","á"};
#if !CAP_TRANS
#define NUMEXTRA 5
const char* natchars[NUMEXTRA] = {"°","é","á", "", "δ"};
#endif
#if CAP_TRANS
@@ -268,7 +268,7 @@ void parrep(string& x, string w, stringpar p) {
if(true) {
// proper names (R'Lyeh)
rep(x,"%"+w,p.v);
#ifdef NOTRANS
#if !CAP_TRANS
int flags = 0;
if(p.v == "R'Lyeh" || p.v == "Camelot") flags = 1;
if(p.v == "Crossroads" || p.v == "Crossroads II" ||