From: Christian Schmitt Date: Tue, 23 Oct 2012 16:55:46 +0000 (+0200) Subject: pt_lights: 9 seconds+ break for the ODALS flash sequence is a bit too much. Set it... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8ddb99f62ff033e7e05c32e1755a62bb7adbb712;p=simgear.git pt_lights: 9 seconds+ break for the ODALS flash sequence is a bit too much. Set it to 2 seconds. --- diff --git a/simgear/scene/tgdb/pt_lights.cxx b/simgear/scene/tgdb/pt_lights.cxx index 7e123a47..47ce0ac8 100644 --- a/simgear/scene/tgdb/pt_lights.cxx +++ b/simgear/scene/tgdb/pt_lights.cxx @@ -515,7 +515,7 @@ SGLightFactory::getOdal(const SGLightBin& lights) Effect* effect = getLightEffect(10.0f, osg::Vec3(1.0, 0.0001, 0.00000001), 6.0, 10.0, false); // centerline lights - for (int i = lights.getNumLights() - 1; 2 <= i; --i) { + for (int i = lights.getNumLights(); i > 1; --i) { EffectGeode* egeode = new EffectGeode; egeode->setEffect(effect); egeode->addDrawable(getLightDrawable(lights.getLight(i))); @@ -532,7 +532,7 @@ SGLightFactory::getOdal(const SGLightBin& lights) sequence->addChild(group, flashTime); // add an extra empty group for a break - sequence->addChild(new osg::Group, 9 + 1e-1*sg_random()); + sequence->addChild(new osg::Group, 2 + 1e-1*sg_random()); sequence->setInterval(osg::Sequence::LOOP, 0, -1); sequence->setDuration(1.0f, -1); sequence->setMode(osg::Sequence::START);