From a952ed210f9dee9925eddf79116c841a95d0b33c Mon Sep 17 00:00:00 2001 From: mfranz Date: Sat, 15 Jul 2006 18:15:00 +0000 Subject: [PATCH] whoops ... don't let the new HUD turn off 3D mode in the old one :-) --- src/Instrumentation/HUD/HUD.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Instrumentation/HUD/HUD.cxx b/src/Instrumentation/HUD/HUD.cxx index 35562ccea..8e9143d97 100644 --- a/src/Instrumentation/HUD/HUD.cxx +++ b/src/Instrumentation/HUD/HUD.cxx @@ -53,7 +53,7 @@ static float clamp(float f) HUD::HUD() : _current(fgGetNode("/sim/hud/current-color", true)), _visibility(fgGetNode("/sim/hud/visibility[1]", true)), - _3DenabledN(fgGetNode("/sim/hud/enable3d", true)), + _3DenabledN(fgGetNode("/sim/hud/enable3d[1]", true)), _antialiasing(fgGetNode("/sim/hud/color/antialiased", true)), _transparency(fgGetNode("/sim/hud/color/transparent", true)), _red(fgGetNode("/sim/hud/color/red", true)), @@ -347,7 +347,7 @@ int HUD::load(const char *file, float x, float y, int level, const string& inden } else if (!strcmp(name, "enable3d")) { // set in the tree so that valueChanged() picks it up - fgSetBool("/sim/hud/enable3d", n->getBoolValue()); + _3DenabledN->setBoolValue(n->getBoolValue()); continue; } else if (!strcmp(name, "import")) {