Set min_waterfall special cases outside loop

develop
kristjanmoore 2020-08-23 17:35:45 +00:00
parent 3ebb812cd5
commit 293b0253c4
1 changed files with 8 additions and 11 deletions

@ -535,19 +535,16 @@ namespace embark_assist {
break;
case fields::min_waterfall:
for (int16_t k = -1; k <= 9; k++) {
if (k == -1) {
element->list.push_back({ "N/A", k });
}
else if (k == 0) {
element->list.push_back({ "Absent", k });
}
else {
element->list.push_back({ std::to_string(k), k });
}
element->list.push_back({ "N/A", -1 });
element->list.push_back({ "Absent", 0 });
for (int16_t k = 1; k <= 9; k++) {
element->list.push_back({ std::to_string(k), k });
}
for (int16_t k = 10; k <= 50; k+=5) {
element->list.push_back({ std::to_string(k), k });
element->list.push_back({ std::to_string(k), k });
}
break;