--sao now enables full sao

This commit is contained in:
Eemeli Kallio 2017-08-11 13:26:55 +03:00
parent 4c3453d26f
commit e5cbc7a205

View file

@ -605,8 +605,7 @@ int kvz_config_parse(kvz_config *cfg, const char *name, const char *value)
}
else if OPT("sao") {
int8_t sao_type = 0;
if (!parse_enum(value, sao_names, &sao_type)) sao_type = atoi(value);
if (sao_type > 3) return 0;
if (!parse_enum(value, sao_names, &sao_type)) sao_type = atobool(value) ? 3 : 0;
cfg->sao_type = sao_type;
}
else if OPT("rdoq")