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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user