From 46681748488a88ae99358c87b31572ea4d504e59 Mon Sep 17 00:00:00 2001 From: ehofman Date: Thu, 28 Oct 2004 08:44:24 +0000 Subject: [PATCH] Move the submodels from the /systems proprty subtree into /ai instead. --- docs-mini/README.submodels | 4 ++-- src/AIModel/submodel.cxx | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs-mini/README.submodels b/docs-mini/README.submodels index 7fa204908..9f26ca531 100644 --- a/docs-mini/README.submodels +++ b/docs-mini/README.submodels @@ -58,7 +58,7 @@ left gun Models/Geometry/tracer.ac - systems/submodels/submodel[0]/trigger + ai/submodels/submodel[0]/trigger 2750.0 true 0.25 @@ -74,7 +74,7 @@ right gun Models/Geometry/tracer.ac - systems/submodels/submodel[0]/trigger + ai/submodels/submodel[0]/trigger 2750.0 true 0.25 diff --git a/src/AIModel/submodel.cxx b/src/AIModel/submodel.cxx index b24e44eb8..e11e0b7c8 100644 --- a/src/AIModel/submodel.cxx +++ b/src/AIModel/submodel.cxx @@ -36,7 +36,7 @@ void FGSubmodelMgr::init () { load(); - _serviceable_node = fgGetNode("/sim/systems/submodels/serviceable", true); + _serviceable_node = fgGetNode("/sim/submodels/serviceable", true); _user_lat_node = fgGetNode("/position/latitude-deg", true); _user_lon_node = fgGetNode("/position/longitude-deg", true); @@ -142,7 +142,7 @@ FGSubmodelMgr::load () { int i; - SGPropertyNode *path = fgGetNode("/sim/systems/submodels/path"); + SGPropertyNode *path = fgGetNode("/sim/submodels/path"); SGPropertyNode root; if (path) { @@ -193,7 +193,7 @@ FGSubmodelMgr::load () sm->contents = sm->contents_node->getDoubleValue(); - sm->prop = fgGetNode("/systems/submodels/submodel", i, true); + sm->prop = fgGetNode("/ai/submodels/submodel", i, true); sm->prop->tie("count", SGRawValuePointer(&(sm->count))); // sm->prop->tie("contents", SGRawValuePointer(&(sm->contents)));