]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/fg_commands.cxx
Erik Hofman:
[flightgear.git] / src / Main / fg_commands.cxx
index 09e0d029d2f9c6e414f8bd47470965f019af649b..e86f7f849873674e86313d0dfc9699eecf3c8c24 100644 (file)
@@ -275,6 +275,7 @@ do_view_cycle (const SGPropertyNode * arg, SGCommandState ** state)
           globals->get_props()->setBoolValue( "/sim/hud/visibility", false );
       }
   }
+  global_tile_mgr.refresh_view_timestamps();
 //   fgReshape(fgGetInt("/sim/startup/xsize"), fgGetInt("/sim/startup/ysize"));
   return true;
 }
@@ -425,7 +426,7 @@ do_property_adjust (const SGPropertyNode * arg, SGCommandState ** state)
     if (hasStep)
       value = step->getBoolValue();
     else
-      value = amount;
+      value = (0.0 != amount);
     if (value)
       return prop->setBoolValue(!prop->getBoolValue());
     else
@@ -666,5 +667,4 @@ fgInitCommands ()
   }
 }
 
-// end of fg_commands.hxx
-
+// end of fg_commands.cxx