Configuration::ParseJson():

Save the pop_plus_steps setting: sometimes it is necessary to adapt the
	pop_plus_steps-variable in order to hit a time-limit-boundary exactly.
	Otherwise the next computed time-step might overshoot the time-limit,
	and when moving backwards (via Minus-Button) there is a better
	resolution: going backwards, the user could hit the exact time-limit,
	which he could not when going up.
This commit is contained in:
Gerhard Hoffmann 2024-09-02 16:58:34 +02:00
parent f24f1fe646
commit c946c106d1

View File

@ -919,6 +919,7 @@ bool Configuration::ParseJson(Configuration* cfg, const char* json)
} else if (strcmp(inner_obj_name, "pop_plus_steps") == 0) {
if (k->value.IsInt()) {
this->currentPaymentOptions.last().pop_plus_steps = k->value.GetInt();
this->currentPaymentOptions.last().pop_plus_steps_saved = k->value.GetInt();
}
} else if (strcmp(inner_obj_name, "pop_minus_steps") == 0) {
if (k->value.IsInt()) {