From: curt Date: Sat, 22 Aug 1998 01:19:27 +0000 (+0000) Subject: Omit panel code because it's texture loading overruns array bounds. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=dc5a0a3f1eb53c811a971b17af43de4bed2a1497;p=flightgear.git Omit panel code because it's texture loading overruns array bounds. --- diff --git a/Cockpit/cockpit.cxx b/Cockpit/cockpit.cxx index d984944ce..6c68c6d52 100644 --- a/Cockpit/cockpit.cxx +++ b/Cockpit/cockpit.cxx @@ -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. diff --git a/Cockpit/hud_card.cxx b/Cockpit/hud_card.cxx index 6018cf0b6..7f4f15a5a 100644 --- a/Cockpit/hud_card.cxx +++ b/Cockpit/hud_card.cxx @@ -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();