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

improvements to patterns; codenumbers also display directions

This commit is contained in:
Zeno Rogue
2017-12-09 08:06:41 +01:00
parent 4fa764c175
commit 9933f373d2
10 changed files with 529 additions and 463 deletions

View File

@@ -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++;
}