Move the submodels from the /systems proprty subtree into /ai instead.
This commit is contained in:
parent
670ea7c881
commit
4668174848
2 changed files with 5 additions and 5 deletions
|
@ -58,7 +58,7 @@
|
||||||
<submodel>
|
<submodel>
|
||||||
<name>left gun</name>
|
<name>left gun</name>
|
||||||
<model>Models/Geometry/tracer.ac</model>
|
<model>Models/Geometry/tracer.ac</model>
|
||||||
<trigger>systems/submodels/submodel[0]/trigger</trigger>
|
<trigger>ai/submodels/submodel[0]/trigger</trigger>
|
||||||
<speed>2750.0</speed>
|
<speed>2750.0</speed>
|
||||||
<repeat>true</repeat>
|
<repeat>true</repeat>
|
||||||
<delay>0.25</delay>
|
<delay>0.25</delay>
|
||||||
|
@ -74,7 +74,7 @@
|
||||||
<submodel>
|
<submodel>
|
||||||
<name>right gun</name>
|
<name>right gun</name>
|
||||||
<model>Models/Geometry/tracer.ac</model>
|
<model>Models/Geometry/tracer.ac</model>
|
||||||
<trigger>systems/submodels/submodel[0]/trigger</trigger>
|
<trigger>ai/submodels/submodel[0]/trigger</trigger>
|
||||||
<speed>2750.0</speed>
|
<speed>2750.0</speed>
|
||||||
<repeat>true</repeat>
|
<repeat>true</repeat>
|
||||||
<delay>0.25</delay>
|
<delay>0.25</delay>
|
||||||
|
|
|
@ -36,7 +36,7 @@ void
|
||||||
FGSubmodelMgr::init ()
|
FGSubmodelMgr::init ()
|
||||||
{
|
{
|
||||||
load();
|
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_lat_node = fgGetNode("/position/latitude-deg", true);
|
||||||
_user_lon_node = fgGetNode("/position/longitude-deg", true);
|
_user_lon_node = fgGetNode("/position/longitude-deg", true);
|
||||||
|
@ -142,7 +142,7 @@ FGSubmodelMgr::load ()
|
||||||
{
|
{
|
||||||
|
|
||||||
int i;
|
int i;
|
||||||
SGPropertyNode *path = fgGetNode("/sim/systems/submodels/path");
|
SGPropertyNode *path = fgGetNode("/sim/submodels/path");
|
||||||
SGPropertyNode root;
|
SGPropertyNode root;
|
||||||
|
|
||||||
if (path) {
|
if (path) {
|
||||||
|
@ -193,7 +193,7 @@ FGSubmodelMgr::load ()
|
||||||
|
|
||||||
sm->contents = sm->contents_node->getDoubleValue();
|
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("count", SGRawValuePointer<int>(&(sm->count)));
|
||||||
|
|
||||||
// sm->prop->tie("contents", SGRawValuePointer<double>(&(sm->contents)));
|
// sm->prop->tie("contents", SGRawValuePointer<double>(&(sm->contents)));
|
||||||
|
|
Loading…
Reference in a new issue