]> git.mxchange.org Git - flightgear.git/commitdiff
#577: blinking not working for static HUD labels
authorThorstenB <brehmt@gmail.com>
Tue, 10 Jan 2012 21:01:05 +0000 (22:01 +0100)
committerThorstenB <brehmt@gmail.com>
Tue, 10 Jan 2012 21:01:05 +0000 (22:01 +0100)
Only worked for dynamic labels displaying a property (mode!=NONE).

src/Instrumentation/HUD/HUD_label.cxx

index ddadedad3e7be01cd66a5f3488ff7310c5a7af7f..030e246b00933b3ffb95890ebcf5fee6c9be4eee 100644 (file)
@@ -80,7 +80,7 @@ HUD::Label::Label(HUD *hud, const SGPropertyNode *n, float x, float y) :
 
 void HUD::Label::draw(void)
 {
-    if (!(_mode == NONE || (_input.isValid() && blink())))
+    if (!((_mode == NONE || _input.isValid()) && blink()))
         return;
 
     if (_box) {