fixup to scale=0.5

This commit is contained in:
Zeno Rogue 2021-02-04 15:07:58 +01:00
parent 243ba096e8
commit 7a4478a2d3
1 changed files with 5 additions and 3 deletions

View File

@ -3031,16 +3031,18 @@ EX int read_config_args() {
}
EX int read_param_args() {
auto pos = args().find("=");
const string& s = arg::args();
auto pos = s.find("=");
if(pos == string::npos) return 1;
string name = args().substr(0, pos);
string value = args().substr(pos+1);
string name = s.substr(0, pos);
string value = s.substr(pos+1);
PHASEFROM(2);
if(!params.count(name)) {
println(hlog, "parameter unknown: ", name);
exit(1);
}
params[name]->load_from(value);
return 0;
}
// mode changes: