Index: fg_commands.cxx
===================================================================
RCS file: /var/cvs/FlightGear-0.9/FlightGear/src/Main/fg_commands.cxx,v
retrieving revision 1.36
diff -c -r1.36 fg_commands.cxx
*** fg_commands.cxx	18 Jul 2003 14:14:24 -0000	1.36
--- fg_commands.cxx	5 Aug 2003 00:30:24 -0000
***************
*** 29,34 ****
--- 29,35 ----
  
  #include "fg_init.hxx"
  #include "fg_commands.hxx"
+ #include "fg_props.hxx"
  
  SG_USING_STD(string);
  SG_USING_STD(ifstream);
***************
*** 845,851 ****
  
  
  
! 
  ////////////////////////////////////////////////////////////////////////
  // Command setup.
  ////////////////////////////////////////////////////////////////////////
--- 846,870 ----
  
  
  
! static bool
! do_decrease_visability (const SGPropertyNode * arg)
! {
!     double new_value = fgGetDouble("/environment/visibility-m") * 0.9;
!     fgSetDouble("/environment/visibility-m", new_value);
!     fgDefaultWeatherValue("visibility-m", new_value);
!     globals->get_subsystem("environment")->reinit();
! }
!  
! static bool
! do_increase_visability (const SGPropertyNode * arg)
! {
!     double new_value = fgGetDouble("/environment/visibility-m") * 1.1;
!     fgSetDouble("/environment/visibility-m", new_value);
!     fgDefaultWeatherValue("visibility-m", new_value);
!     globals->get_subsystem("environment")->reinit();
! }
! 
! 
  ////////////////////////////////////////////////////////////////////////
  // Command setup.
  ////////////////////////////////////////////////////////////////////////
***************
*** 894,899 ****
--- 913,920 ----
      { "presets-commit", do_presets_commit },
      { "log-level", do_log_level },
      { "replay", do_replay },
+     { "decrease-visibility", do_decrease_visability },
+     { "increase-visibility", do_increase_visability },
      { 0, 0 }			// zero-terminated
  };
  
