]> git.mxchange.org Git - flightgear.git/commitdiff
Omit panel code because it's texture loading overruns array bounds.
authorcurt <curt>
Sat, 22 Aug 1998 01:19:27 +0000 (01:19 +0000)
committercurt <curt>
Sat, 22 Aug 1998 01:19:27 +0000 (01:19 +0000)
Cockpit/cockpit.cxx
Cockpit/hud_card.cxx

index d984944cee8fe7258d135f9ad71f6f99cc09239d..6c68c6d52aacb467311c02b30e07bcbfb89c7866 100644 (file)
@@ -266,7 +266,9 @@ bool fgCockpitInit( fgAIRCRAFT *cur_aircraft )
     fgHUDInit( cur_aircraft );
     ac_cockpit = new fg_Cockpit();
     
+#ifdef INCLUDE_PANEL
     fgPanelInit();
+#endif
 
     fgPrintf( FG_COCKPIT, FG_INFO,
              "  Code %d  Status %d\n",
@@ -291,17 +293,22 @@ void fgCockpitUpdate( void ) {
        fgUpdateHUD();
     }
 
+#if INCLUDE_PANEL
     if ( current_options.get_panel_status() && 
         (fabs(pview->view_offset) < 0.2) ) {
        fgPanelUpdate();
     }
+#endif
 }
 
 
 /* $Log$
-/* Revision 1.12  1998/07/13 21:28:00  curt
-/* Converted the aoa scale to a radio altimeter.
+/* Revision 1.13  1998/08/22 01:19:27  curt
+/* Omit panel code because it's texture loading overruns array bounds.
 /*
+ * Revision 1.12  1998/07/13 21:28:00  curt
+ * Converted the aoa scale to a radio altimeter.
+ *
  * Revision 1.11  1998/07/13 21:00:45  curt
  * Integrated Charlies latest HUD updates.
  * Wrote access functions for current fgOPTIONS.
index 6018cf0b61a8b8d559eced8fa4ad95dde4f2bdd8..7f4f15a5af46e024f0ad0d5f5a0fc17cb516a74c 100644 (file)
@@ -81,7 +81,7 @@ draw( void ) //  (HUD_scale * pscale )
   /* register */ int i;
   char TextScale[80];
   bool condition;
-  int disp_val;
+  int disp_val = 0;
   POINT mid_scr    = get_centroid();
   double cur_value = get_value();
   RECT   scrn_rect = get_location();