From e5cbc7a20561726ed0155916fe6839b321db25db Mon Sep 17 00:00:00 2001 From: Eemeli Kallio Date: Fri, 11 Aug 2017 13:26:55 +0300 Subject: [PATCH] --sao now enables full sao --- src/cfg.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/cfg.c b/src/cfg.c index 435fa525..c6aa43ab 100644 --- a/src/cfg.c +++ b/src/cfg.c @@ -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")