]> git.mxchange.org Git - flightgear.git/commitdiff
warning-- (not that it matters -- this code has yet to be converted)
authormfranz <mfranz>
Thu, 6 Jul 2006 14:43:41 +0000 (14:43 +0000)
committermfranz <mfranz>
Thu, 6 Jul 2006 14:43:41 +0000 (14:43 +0000)
src/Instrumentation/HUD/HUD_tape.cxx

index 486fa9a22c73aac5b9bb840d02319728b9fe900b..5c7e81e66ecd914ce4f0eee1216f213684bf29e0 100644 (file)
@@ -630,7 +630,7 @@ void HUD::Tape::zoomed_scale(int first, int last)
         float factor = range / 10.0;
 
         float hgt1 = bottom * 30.0 / 100.0;
-        int  incrs = ((int)_val_span - (_major_divs * 2)) / _major_divs ;              // FIXME wtf?
+        int  incrs = int((_val_span - _major_divs * 2.0) / _major_divs);
         int  incr = incrs / 2;
         float factors = hgt1 / incr;
 
@@ -793,7 +793,7 @@ void HUD::Tape::zoomed_scale(int first, int last)
         float factor = range / 10.0;
 
         float hgt1 = bottom * 30.0 / 100.0;
-        int  incrs = ((int)_val_span - (_major_divs * 2)) / _major_divs ;
+        int  incrs = int((_val_span - _major_divs * 2.0) / _major_divs);
         int  incr = incrs / 2;
         float factors = hgt1 / incr;