]> git.mxchange.org Git - simgear.git/commitdiff
pt_lights: 9 seconds+ break for the ODALS flash sequence is a bit too much. Set it...
authorChristian Schmitt <chris@ilovelinux.de>
Tue, 23 Oct 2012 16:55:46 +0000 (18:55 +0200)
committerChristian Schmitt <chris@ilovelinux.de>
Tue, 23 Oct 2012 17:09:56 +0000 (19:09 +0200)
simgear/scene/tgdb/pt_lights.cxx

index 7e123a475da55583f31b65ba2dd59e28ae846fa8..47ce0ac8aef03e6e8833a119662d7283a2f1cba9 100644 (file)
@@ -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);