From: Tom P <zo...@gm...> - 2009-08-18 21:41:00
|
Hi While building fgfs from CVS on Windows, I've noticed the following warning. 1>c:\flightgear\flightgear\src\network\native_ctrls.cxx(439) : warning C4800: 'double' : forcing value to bool 'true' or 'false' (performance warning) It's telling that the magnetic variation gets truncated to a boolean when assigned to the property tree. Is that correct? File: native_ctrls.cxx node = fgGetNode( "/environment", true ); node->setDoubleValue( "wind-speed-kt", net->wind_speed_kt ); node->setDoubleValue( "wind-from-heading-deg", net->wind_dir_deg ); node->setDoubleValue( "turbulence/magnitude-norm", net->turbulence_norm ); node->setBoolValue( "magnetic-variation-deg", net->magvar ); ^^^^ Tom |