]> git.mxchange.org Git - simgear.git/commitdiff
add a bit of comment
authorehofman <ehofman>
Sat, 25 Apr 2009 09:57:06 +0000 (09:57 +0000)
committerTim Moore <timoore@redhat.com>
Fri, 1 May 2009 22:40:09 +0000 (00:40 +0200)
simgear/sound/xmlsound.cxx

index 474386039fd6147fa66dc128b61edc3476801dd8..2db0fcff2aa3a30588aa3eb2506bb54e7a81f721 100644 (file)
@@ -297,6 +297,11 @@ SGXmlSound::update (double dt)
    if (_property)
        curr_value = _property->getDoubleValue();
 
+   // If a condition is defined, test whether it is FALSE,
+   // else
+   //   if a property is defined then test if it's value is FALSE
+   //      or if the mode is IN_TRANSIT then
+   //            test whether the current value matches the previous value.
    if (                                                        // Lisp, anyone?
        (_condition && !_condition->test()) ||
        (!_condition && _property &&