~ubuntu-branches/debian/sid/flightgear/sid

« back to all changes in this revision

Viewing changes to src/Autopilot/analogcomponent.hxx

  • Committer: Package Import Robot
  • Author(s): Markus Wanner, Markus Wanner, Rebecca Palmer
  • Date: 2014-01-21 22:31:02 UTC
  • mfrom: (1.3.1) (15.1.2 experimental)
  • Revision ID: package-import@ubuntu.com-20140121223102-cjw7g9le25acd119
Tags: 3.0.0~git20140204+c99ea4-1
[ Markus Wanner ]
* Upload to unstable.
* Adjust B-D to allow building on kfreebsd-*. Closes: #724686.
* Add a lintian-overrides on autotools; we use cmake.
* Upstream corrected the fgfs manpage. Closes: #556362.
* Drop unnecessary man page for gl-info. Closes: #698308.
* Drop README.Linux: it's outdated to the point of uselessness.
  Closes: #574173.
* Add an upper limit of libsimgear-dev versions that flightgear can be
  built with. Closes: #738436.
* Drop the libsvn-dev dependency, neither flightgear nor simgear depend
  on libsvn, anymore. Closes: #682947.
* List icons in debian/install rather than copying around from rules.
* Update menu entry for flightgear, add one for fgcom; add .xpm icons.
  Closes: #713924.
* flightgear.desktop: add German translation
* Bump Standards-Version to 3.9.5; no changes needed.

[ Rebecca Palmer ]
* New upstream release.
* Install the icons (based on code by Saikrishna Arcot).  (Not a
  complete fix for LP908153 as it only sets the menu/Dash icon, not the
  running window's icon, but better than nothing).
* Disable screensaver while running. Closes: LP#793599. Add required
  libdbus-1-dev dependency.
* Remove outdated README.Debian.
* Terrasync now works after just ticking the box. Closes: #252899.
* Always set Terrasync directory.

Show diffs side-by-side

added added

removed removed

Lines of Context:
115
115
     * values of <min> and/or <max>. 
116
116
     */
117
117
    inline double get_output_value() const {
118
 
      return _output_list.size() == 0 ? 0.0 : clamp(_output_list[0]->getDoubleValue());
 
118
      return _output_list.empty() ? 0.0 : clamp(_output_list[0]->getDoubleValue());
119
119
    }
120
120
 
121
121
    simgear::PropertyList _output_list;
140
140
 
141
141
inline void AnalogComponent::disabled( double dt )
142
142
{
143
 
  if( _feedback_if_disabled && _output_list.size() > 0 ) {    
 
143
  if( _feedback_if_disabled && ! _output_list.empty() ) {    
144
144
    InputValue * input;
145
145
    if( (input = _valueInput.get_active() ) != NULL )
146
146
      input->set_value( _output_list[0]->getDoubleValue() );