Fixed getDouble returns int only
Added Rainbow Tail Factor
This commit is contained in:
parent
dd06aa3e35
commit
1a17f1db63
3 changed files with 4 additions and 2 deletions
|
|
@ -62,7 +62,7 @@ namespace VUtils {
|
|||
double Environment::getAsDouble(const std::string &name, double def) {
|
||||
char *end;
|
||||
auto *v = getEnv(name, "").c_str();
|
||||
double val = (int) std::strtod(v, &end);
|
||||
auto val = (double) std::strtod(v, &end);
|
||||
if (end == v) {
|
||||
setNumber(name.c_str(), def);
|
||||
return def;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue