]> git.mxchange.org Git - flightgear.git/blobdiff - src/Cockpit/hud_ladr.cxx
remove obsolete constants
[flightgear.git] / src / Cockpit / hud_ladr.cxx
index 974475f263a1fe4de0ca50237149485ea0804da4..dfc815a70a29f3e32ad515188b29c96490e57cfe 100644 (file)
@@ -1,11 +1,17 @@
 
+#ifdef HAVE_CONFIG_H
+#  include "config.h"
+#endif
+
+#include <simgear/constants.h>
+
 #include "hud.hxx"
 #include "panel.hxx"
 
 #define DO_PANEL_HACK
 
 //====================== Top of HudLadder Class =======================
-HudLadder ::   HudLadder(  string name,
+HudLadder ::   HudLadder(  const string& name,
                           int       x,
                           int       y,
                           UINT      width,
@@ -292,8 +298,8 @@ void HudLadder :: draw( void )
        //  velocity vector
        glBegin(GL_LINE_LOOP);  // Use polygon to approximate a circle 
         for(count=0; count<50; count++) {             
-           cosine = 6 * cos(count * 2 * SGD_PI/50.0); 
-            sine =   6 * sin(count * 2 * SGD_PI/50.0); 
+           cosine = 6 * cos(count * SGD_2PI/50.0); 
+            sine =   6 * sin(count * SGD_2PI/50.0); 
             glVertex2f(cosine+vel_x, sine+vel_y);
        }     
        glEnd();