//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
-// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
//
#include <simgear/math/interpolater.hxx>
InstVerticalSpeedIndicator::InstVerticalSpeedIndicator ( SGPropertyNode *node ) :
_internal_pressure_inhg( SEA_LEVEL_INHG ),
_internal_sea_inhg( SEA_LEVEL_INHG ),
+ _speed_ft_per_s( 0 ),
_pressure_table(new SGInterpTable),
- _altitude_table(new SGInterpTable),
- _speed_ft_per_s( 0 )
+ _altitude_table(new SGInterpTable)
{
- for (int i = 0; pressure_data[i][0] != -1; i++)
+ int i;
+ for ( i = 0; pressure_data[i][0] != -1; i++)
_pressure_table->addEntry( pressure_data[i][0], pressure_data[i][1] );
- for (int i = 0; altitude_data[i][0] != -1; i++)
+ for ( i = 0; altitude_data[i][0] != -1; i++)
_altitude_table->addEntry( altitude_data[i][0], altitude_data[i][1] );
- int i;
for ( i = 0; i < node->nChildren(); ++i ) {
SGPropertyNode *child = node->getChild(i);
string cname = child->getName();