[prev in list] [next in list] [prev in thread] [next in thread] 

List:       flightgear-cvs
Subject:    [Flightgear-cvslogs] CVS: FlightGear/src/Environment
From:       Erik Hofman <ehofman () flightgear ! org>
Date:       2004-02-28 12:08:04
Message-ID: E1Ax3GG-0004gX-00 () baron ! me ! umn ! edu
[Download RAW message or body]

Update of /var/cvs/FlightGear-0.9/FlightGear/src/Environment
In directory baron:/tmp/cvs-serv17748

Modified Files:
	environment_ctrl.cxx 
Log Message:
Revert the previous patch, wind-heading-from is part of a range, not a direction itself.

Index: environment_ctrl.cxx
===================================================================
RCS file: /var/cvs/FlightGear-0.9/FlightGear/src/Environment/environment_ctrl.cxx,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -r1.20 -r1.21
*** a/environment_ctrl.cxx	28 Feb 2004 11:03:59 -0000	1.20
--- b/environment_ctrl.cxx	28 Feb 2004 12:08:01 -0000	1.21
***************
*** 368,378 ****
  FGMetarEnvironmentCtrl::update_env_config ()
  {
!     double wind_dir1 = fgGetDouble("/environment/metar/base-wind-range-from");
!     double wind_dir2 = fgGetDouble("/environment/metar/base-wind-range-to");
! 
!     wind_dir1 = fmod (wind_dir1 + 180.0, 360.0);
!     wind_dir2 = fmod (wind_dir2 + 180.0, 360.0);
! 
!     fgSetupWind( wind_dir1, wind_dir2,
                   fgGetDouble("/environment/metar/base-wind-speed-kt"),
                   fgGetDouble("/environment/metar/gust-wind-speed-kt") );
--- 368,373 ----
  FGMetarEnvironmentCtrl::update_env_config ()
  {
!     fgSetupWind( fgGetDouble("/environment/metar/base-wind-range-from"),
!                  fgGetDouble("/environment/metar/base-wind-range-to"),
                   fgGetDouble("/environment/metar/base-wind-speed-kt"),
                   fgGetDouble("/environment/metar/gust-wind-speed-kt") );


_______________________________________________
Flightgear-cvslogs mailing list
Flightgear-cvslogs@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-cvslogs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic