1
0
Fork 0

- modified switch layers to use layer[0] and layer[1] rather than

layer1 and layer2; panel config changes required
This commit is contained in:
curt 2001-07-30 16:26:02 +00:00
parent 4678a4db66
commit cfe05480f4

View file

@ -499,9 +499,9 @@ readLayer (const SGPropertyNode * node, float w_scale, float h_scale)
SGPropertyNode * target = SGPropertyNode * target =
fgGetNode(node->getStringValue("property"), true); fgGetNode(node->getStringValue("property"), true);
FGInstrumentLayer * layer1 = FGInstrumentLayer * layer1 =
readLayer(node->getNode("layer1"), w_scale, h_scale); readLayer(node->getNode("layer[0]"), w_scale, h_scale);
FGInstrumentLayer * layer2 = FGInstrumentLayer * layer2 =
readLayer(node->getNode("layer2"), w_scale, h_scale); readLayer(node->getNode("layer[1]"), w_scale, h_scale);
layer = new FGSwitchLayer(w, h, target, layer1, layer2); layer = new FGSwitchLayer(w, h, target, layer1, layer2);
} }