- remove obsolete definition
- make sure HUD is only initialized once
This commit is contained in:
parent
782e6b82f0
commit
20076aa2b9
1 changed files with 5 additions and 8 deletions
|
@ -58,16 +58,10 @@
|
|||
#include <Main/fg_props.hxx>
|
||||
#include <Scenery/scenery.hxx>
|
||||
|
||||
#if defined (__sun) || defined ( __sgi )
|
||||
extern "C" {
|
||||
extern void *memmove(void *, const void *, size_t);
|
||||
}
|
||||
#endif
|
||||
|
||||
#include "hud.hxx"
|
||||
|
||||
|
||||
static HUD_Properties *HUD;
|
||||
static HUD_Properties *HUD = 0;
|
||||
|
||||
static char units[5];
|
||||
|
||||
|
@ -779,6 +773,7 @@ int fgHUDInit( fgAIRCRAFT * /* current_aircraft */ )
|
|||
HUDtext->setPointSize(HUD_TextSize);
|
||||
HUD_TextList.setFont( HUDtext );
|
||||
|
||||
if (!HUD)
|
||||
HUD = new HUD_Properties;
|
||||
return 0; // For now. Later we may use this for an error code.
|
||||
|
||||
|
@ -804,6 +799,8 @@ int fgHUDInit2( fgAIRCRAFT * /* current_aircraft */ )
|
|||
input.close();
|
||||
}
|
||||
|
||||
if (!HUD)
|
||||
HUD = new HUD_Properties;
|
||||
return 0; // For now. Later we may use this for an error code.
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue