From 9dd131d00a2afb33985ca721524aab1748ca143e Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 17 Aug 2019 13:51:33 +0200 Subject: [PATCH] args:: creaturescale and character selection --- config.cpp | 9 +++++++++ pattern2.cpp | 9 ++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/config.cpp b/config.cpp index 314b8bb4..c20a5bdf 100644 --- a/config.cpp +++ b/config.cpp @@ -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; } diff --git a/pattern2.cpp b/pattern2.cpp index 4182593f..c7d0c905 100644 --- a/pattern2.cpp +++ b/pattern2.cpp @@ -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(); }