X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FMain%2Ffg_commands.cxx;h=e86f7f849873674e86313d0dfc9699eecf3c8c24;hb=a4e81f4ff075e6a3c0c2ea1b5a29c0bcdfdbc671;hp=09e0d029d2f9c6e414f8bd47470965f019af649b;hpb=6e5d22789b420291593c8c8a044220372801e454;p=flightgear.git diff --git a/src/Main/fg_commands.cxx b/src/Main/fg_commands.cxx index 09e0d029d..e86f7f849 100644 --- a/src/Main/fg_commands.cxx +++ b/src/Main/fg_commands.cxx @@ -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