]> git.mxchange.org Git - flightgear.git/blobdiff - src/Cockpit/panel.cxx
Modified FGSubsystem::update() to take an int parameter for delta time
[flightgear.git] / src / Cockpit / panel.cxx
index 14810b4019d7108232441ec82b9228469cbf38a8..a752227891987aeec5bd67707285cd6d472caecc 100644 (file)
@@ -48,7 +48,7 @@
 #define WIN_W 1024
 #define WIN_H 768
 
-#ifdef defined( NONE ) && defined( _MSC_VER )
+#if defined( NONE ) && defined( _MSC_VER )
 #  pragma message( "A sloppy coder has defined NONE as a macro!!!" )
 #  undef NONE
 #elif defined( NONE )
@@ -253,11 +253,12 @@ FGPanel::unbind ()
  * Update the panel.
  */
 void
-FGPanel::update ()
+FGPanel::update (int dt)
 {
                                // Do nothing if the panel isn't visible.
-    if (!fgPanelVisible())
+    if ( !fgPanelVisible() ) {
         return;
+    }
 
                                // If the mouse is down, do something
     if (_mouseDown) {
@@ -519,6 +520,7 @@ FGPanelTransformation::FGPanelTransformation ()
 
 FGPanelTransformation::~FGPanelTransformation ()
 {
+  delete table;
 }