1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-27 20:07:40 +00:00

rogueviz.cpp now includes only rogueviz core while rogueviz-all includes all; rogueviz modules can be included separately now

This commit is contained in:
Zeno Rogue
2020-03-29 16:03:31 +02:00
parent de0218b732
commit c0e11b731a
12 changed files with 48 additions and 78 deletions

View File

@@ -251,6 +251,16 @@ struct storydata { int s; int e; const char *text; } story[] = {
string its05(int i) { char buf[64]; sprintf(buf, "%05d", i); return buf; }
int dimid(char x) {
if(x >= 'a' && x < 'a' + GDIM) return x - 'a';
else if(x >= '0' && x < '0' + GDIM) return x - '0';
else if(x >= 'x' && x < 'x' + GDIM) return x - 'x';
else {
println(hlog, "incorrect dimension ID");
throw hr_exception();
}
}
int readArgs() {
#if CAP_COMMANDLINE
using namespace arg;