From 57f4876c59ecee0c4049647519559ead9fc854a9 Mon Sep 17 00:00:00 2001 From: mfranz Date: Fri, 21 Dec 2007 11:39:51 +0000 Subject: [PATCH] depreciation warning for users of old custom HUDs --- src/Cockpit/hud.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Cockpit/hud.cxx b/src/Cockpit/hud.cxx index 5a2bfc48f..a0445d50d 100644 --- a/src/Cockpit/hud.cxx +++ b/src/Cockpit/hud.cxx @@ -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()); -- 2.39.5