]> git.mxchange.org Git - flightgear.git/commitdiff
make it nicer & shorter :-)
authormfranz <mfranz>
Thu, 28 Jun 2007 19:23:57 +0000 (19:23 +0000)
committermfranz <mfranz>
Thu, 28 Jun 2007 19:23:57 +0000 (19:23 +0000)
src/Main/options.cxx

index a32745ce327c9f5e6ab465e992b4a4d845fd1622..80489d4c1fba75da13765072f5b8f767a42d6cfa 100644 (file)
@@ -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);