mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-11-17 13:14:30 +00:00
improvements to patterns; codenumbers also display directions
This commit is contained in:
1 parent
4fa764c175
commit
9933f373d2
10 files changed
+529
-463
No files matched your search
+2
-5
@@ -82,12 +82,9 @@ int arg::readCommon() {
|
||||
shift();
|
||||
char *c = args();
|
||||
using namespace patterns;
|
||||
sym01 = sym02 = sym03 = symRotation = false;
|
||||
subpattern_flags = 0;
|
||||
while(*c) {
|
||||
if(*c == '1') sym01 = true;
|
||||
else if(*c == '2') sym02 = true;
|
||||
else if(*c == '3') sym03 = true;
|
||||
else if(*c == '0') symRotation = true;
|
||||
if(*c >= '0' && *c <= '9') subpattern_flags ^= (*c - '0');
|
||||
else whichPattern = *c;
|
||||
c++;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user