args:: creaturescale and character selection

This commit is contained in:
Zeno Rogue 2019-08-17 13:51:33 +02:00
parent 96bf478482
commit 9dd131d00a
2 changed files with 17 additions and 1 deletions

View File

@ -2291,6 +2291,15 @@ EX int read_config_args() {
else if(argis("-tstep")) {
PHASEFROM(2); shift(); vid.texture_step = argi();
}
else if(argis("-csc")) {
PHASEFROM(2); shift_arg_formula(vid.creature_scale);
}
else if(argis("-char")) {
auto& cs = vid.cs;
shift(); cs.charid = argi();
cs.lefthanded = cs.charid >= 10;
cs.charid %= 10;
}
else return 1;
return 0;
}

View File

@ -2687,7 +2687,14 @@ int read_pattern_args() {
if(c == 't') ct = &nestcolors;
else if(c == 'd') ct = &distcolors;
else if(c == 'm') ct = &minecolors;
else if(c == 'E') { shift(); int d = argi(); shift(); expcolors[d] = arghex(); }
else if(c == 'E') { shift(); int d = argi(); shift(); expcolors[d] = arghex(); return 0; }
else if(c == 'P') {
shift(); int d = argi(); shift();
color_t h = arghex();
if(d >= 0 && d < 7)
((color_t*)(&vid.cs.skincolor)) [d] = h;
return 0;
}
else ct = &(colortables[patterns::whichCanvas]);
shift();
}