]> git.mxchange.org Git - flightgear.git/commitdiff
depreciation warning for users of old custom HUDs
authormfranz <mfranz>
Fri, 21 Dec 2007 11:39:51 +0000 (11:39 +0000)
committermfranz <mfranz>
Fri, 21 Dec 2007 11:39:51 +0000 (11:39 +0000)
src/Cockpit/hud.cxx

index 5a2bfc48f2f7d3e4ec57583aeeff0ee4a1f0aeb1..a0445d50d40db223c27f47737310fdff1bae3828 100644 (file)
@@ -191,6 +191,8 @@ int readHud( istream &input )
     SG_LOG(SG_INPUT, SG_INFO, "Read properties for  " <<
            root.getStringValue("name"));
 
+    if (!root.getNode("no-warning"))
+        SG_LOG(SG_INPUT, SG_ALERT, "WARNING: use of depreciated old HUD");
 
     HUD_deque.erase( HUD_deque.begin(), HUD_deque.end());