1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-12-20 12:58:06 +00:00

colors:: allocate more colors

This commit is contained in:
Zeno Rogue
2021-10-17 09:05:51 +02:00
parent 25b77617cd
commit 9d26e98fcd
2 changed files with 6 additions and 1 deletions

View File

@@ -3110,10 +3110,11 @@ int read_pattern_args() {
((color_t*)(&vid.cs.skincolor)) [d] = h;
return 0;
}
else ct = &(colortables[patterns::whichCanvas]);
else ct = &(colortables[args()[0]]);
shift();
}
int d = argi();
ct->allocate(d+1);
shift(); (*ct)[d] = arghex();
}
else if(argis("-canvas")) {