X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FCockpit%2Fhud.cxx;h=fa6f25f4d37025415ce34725cafb159cbb7da936;hb=29275ce1ecf9c4ea302aacca8c5ae5d4d3319a17;hp=f6097b947ea206f4bf65ff1f84aee06de81752cb;hpb=576432ec75ce0c8f860e5df503cab37e3b8d9024;p=flightgear.git diff --git a/src/Cockpit/hud.cxx b/src/Cockpit/hud.cxx index f6097b947..fa6f25f4d 100644 --- a/src/Cockpit/hud.cxx +++ b/src/Cockpit/hud.cxx @@ -762,7 +762,7 @@ int fgHUDInit2( fgAIRCRAFT * /* current_aircraft */ ) } //$$$ End - added, Neetha, 28 Nov 2k -int global_day_night_switch = DAY; +static int global_day_night_switch = DAY; void HUD_masterswitch( bool incr ) { @@ -770,7 +770,7 @@ void HUD_masterswitch( bool incr ) if ( global_day_night_switch == DAY ) { global_day_night_switch = NIGHT; } else { - fgSetBool("/sim/hud/visiblity", false); + fgSetBool("/sim/hud/visibility", false); } } else { fgSetBool("/sim/hud/visibility", true);