X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FInstrumentation%2Finst_vertical_speed_indicator.cxx;h=134e853ab5ee170ccefa32c56a8e6aee34a741d7;hb=c1d06064c8eec5f058f031031cde944489a31b40;hp=81c746306e367ab26b56a9f77378fd6fa6bafb72;hpb=486b59a431e76de1aff4b57b51a36d035e6b5cce;p=flightgear.git diff --git a/src/Instrumentation/inst_vertical_speed_indicator.cxx b/src/Instrumentation/inst_vertical_speed_indicator.cxx index 81c746306..134e853ab 100644 --- a/src/Instrumentation/inst_vertical_speed_indicator.cxx +++ b/src/Instrumentation/inst_vertical_speed_indicator.cxx @@ -17,7 +17,7 @@ // // 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 @@ -133,17 +133,17 @@ static double altitude_data[][2] = { 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();