1
0
Fork 0

Move the submodels from the /systems proprty subtree into /ai instead.

This commit is contained in:
ehofman 2004-10-28 08:44:24 +00:00
parent 670ea7c881
commit 4668174848
2 changed files with 5 additions and 5 deletions

View file

@ -58,7 +58,7 @@
<submodel>
<name>left gun</name>
<model>Models/Geometry/tracer.ac</model>
<trigger>systems/submodels/submodel[0]/trigger</trigger>
<trigger>ai/submodels/submodel[0]/trigger</trigger>
<speed>2750.0</speed>
<repeat>true</repeat>
<delay>0.25</delay>
@ -74,7 +74,7 @@
<submodel>
<name>right gun</name>
<model>Models/Geometry/tracer.ac</model>
<trigger>systems/submodels/submodel[0]/trigger</trigger>
<trigger>ai/submodels/submodel[0]/trigger</trigger>
<speed>2750.0</speed>
<repeat>true</repeat>
<delay>0.25</delay>

View file

@ -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<int>(&(sm->count)));
// sm->prop->tie("contents", SGRawValuePointer<double>(&(sm->contents)));