diff --git a/commandline.cpp b/commandline.cpp index 8e2d5e7d..7f684ca8 100644 --- a/commandline.cpp +++ b/commandline.cpp @@ -84,11 +84,14 @@ int arg::readCommon() { using namespace patterns; subpattern_flags = 0; while(*c) { - if(*c >= '0' && *c <= '9') subpattern_flags ^= (*c - '0'); + if(*c >= '0' && *c <= '9') subpattern_flags ^= 1 << (*c - '0'); else whichPattern = *c; c++; } } + else if(argis("-nogui")) { + noGUI = true; + } else if(argis("-back")) { shift(); backcolor = strtol(args(), NULL, 16); } diff --git a/rogueviz.cpp b/rogueviz.cpp index 2626ee1d..a9ac8f92 100644 --- a/rogueviz.cpp +++ b/rogueviz.cpp @@ -1620,10 +1620,6 @@ int readArgs() { spiral::place(N, mul); } - else if(argis("-nogui")) { - noGUI = true; - } - else if(argis("-net")) { PHASE(3); init(); kind = kFullNet;