]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/options.cxx
GUI windows are now draggable. This missing feature has annoyed me
[flightgear.git] / src / Main / options.cxx
index c719def4fdde8e82ad1604d7b3c303b1f4c07585..0e19d6ee38f6f7f379c5826334d07d2873150ec1 100644 (file)
@@ -539,13 +539,14 @@ add_channel( const string& type, const string& channel_str ) {
 // at this stage. 
 
 // Parse --wp=ID[@alt]
-static bool 
+static void 
 parse_wp( const string& arg ) {
-  string_list *waypoints = globals->get_initial_waypoints();
-  if (!waypoints)
-    waypoints = new string_list;
-  waypoints->push_back(arg);
-  globals->set_initial_waypoints(waypoints);
+    string_list *waypoints = globals->get_initial_waypoints();
+    if (!waypoints) {
+        waypoints = new string_list;
+    }
+    waypoints->push_back(arg);
+    globals->set_initial_waypoints(waypoints);
 }