Harald JOHNSEN wrote:
> this patch will propagate zero volt to the output properties
> when...there is no current at all.
[...]
> RCS file: /var/cvs/FlightGear-0.9/source/src/Systems/electrical.cxx,v
> retrieving revision 1.35.2.1
> diff -u -r1.35.2.1 electrical.cxx
> --- electrical.cxx 11 May 2007 18:00:05 -0000 1.35.2.1
> +++ electrical.cxx 19 May 2007 09:19:22 -0000
> @@ -428,16 +428,16 @@
> // zero out the voltage before we start, but don't clear the
> // requested load values.
> for ( i = 0; i < suppliers.size(); ++i ) {
> - suppliers[i]->set_volts( 0.0 );
> + suppliers[i]->set_volts( -0.01 );
Why is setting to 0.0 not sufficient to reach the desired goal ?
Martin.
--
Unix _IS_ user friendly - it's just selective about who its friends are !
--------------------------------------------------------------------------
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Flightgear-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel