make it nicer & shorter :-)
This commit is contained in:
parent
f4529e5cfe
commit
8c3f03ae03
1 changed files with 3 additions and 5 deletions
|
@ -1416,11 +1416,9 @@ set_property(const string& arg)
|
|||
type = name.substr(0, pos);
|
||||
name = name.substr(pos + 1);
|
||||
}
|
||||
if (type == "s" || type == "string") {
|
||||
fgSetString(name.c_str(), value.c_str());
|
||||
return true;
|
||||
}
|
||||
if (type == "d" || type == "double")
|
||||
if (type == "s" || type == "string")
|
||||
;
|
||||
else if (type == "d" || type == "double")
|
||||
fgSetDouble(name.c_str(), 0.0);
|
||||
else if (type == "f" || type == "float")
|
||||
fgSetFloat(name.c_str(), 0.0f);
|
||||
|
|
Loading…
Add table
Reference in a new issue