From: Naffanya Date: Tue, 18 Feb 2014 22:09:24 +0000 (+0200) Subject: Add ability to get of value of parameter 'tariff' with name 'tariffName' X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/a3d92499a8c10b231db452e86a0a71900910fa4f?ds=sidebyside;hp=-c Add ability to get of value of parameter 'tariff' with name 'tariffName' --- a3d92499a8c10b231db452e86a0a71900910fa4f diff --git a/projects/stargazer/plugins/other/rscript/rscript.cpp b/projects/stargazer/plugins/other/rscript/rscript.cpp index 725bc3f1..4a9e8d32 100644 --- a/projects/stargazer/plugins/other/rscript/rscript.cpp +++ b/projects/stargazer/plugins/other/rscript/rscript.cpp @@ -429,7 +429,11 @@ for(it = rsSettings.GetUserParams().begin(); it != rsSettings.GetUserParams().end(); ++it) { - std::string parameter(rsu.user->GetParamValue(it->c_str())); + std::string parameter; + if (it->c_str() == "tariffName") + parameter = rsu.user->GetParamValue("tariff"); + else + parameter = rsu.user->GetParamValue(it->c_str()); if (params.length() + parameter.length() > RS_PARAMS_LEN - 1) break; params += parameter + " ";